Reputation: 10440
I am writing a SSL Client
using openSSL
library. I am able to connect to https://www.httpbin.org
using my C program. However, i want to manually set my own AES
key for further symmetric cryptography and notify the server about key. I know that key for symmetric encryption is set during handshake process. I am using SSL_connect()
to connect to server.
How can i manually set key for symmetric cryptography?
Upvotes: 1
Views: 159
Reputation: 123423
This is not possible. The key used for encryption depends on data created by both server and client. This means it is not possible to for the client to have full control over the key value. See also Computing the Master Secret in RFC 5246 (TLS 1.2).
Upvotes: 3