[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


OpenSSL question

Posted on 2005-04-20
Medium Priority
Last Modified: 2012-06-27
Question about OpenSSL when accepting a connection.

 Can I create keys at run time ?
 Currently i use SSL_CTX_use_certificate_file with a fixed PEM file containing the key.
 How can I generate random key pairs to be used ?
 I tried

RSA* rsa = RSA_generate_key(2048,17,0,0);
but SSL_CTX_use_RSAPrivateKey() fails.


Question by:WxW
1 Comment
LVL 22

Accepted Solution

NovaDenizen earned 250 total points
ID: 13845657
You might be trying to do the wrong thing...

I believe that ssh clients and servers use their respective private key information with the others' public key information, along with random data and time-based data, to negotiate & generate a unique symmetric session key with which they encrypt the 'meat' of the data exchanged between them.   So, all data seen by a malicious observer will be encrypted with a different session key every connection, and (maybe, I'm not sure) perhaps periodically a new session key for a long-term connection.


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question