Thread: openssl: RSA_generate_key, problems

  1. #1
    Registered User
    Join Date
    Aug 2012

    openssl: RSA_generate_key, problems

    i'm working on linux and i have a problem. The RSA_generate_key generate always the same public key on different running, and on different sources. How can i generate always different key for each call?

  2. #2
    Registered User
    Join Date
    Mar 2011
    what arguments are you calling it with?

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    What I do to better understand OpenSSL API's is to run the "openssl" app in the debugger. The openssl command line tool can do most things that a develop may want to do in their own code. So it can be used as a "master sample" for most things.

    Here is the command line for RSA key generation: OpenSSL: Documents, genrsa(1)
    So you could see what's different between your code and how "openssl" does it.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to set RSA key in openssl
    By homoon in forum C Programming
    Replies: 8
    Last Post: 04-27-2012, 02:20 PM
  2. About 3DES CBC in OpenSSL
    By homoon in forum C Programming
    Replies: 3
    Last Post: 04-09-2012, 10:04 AM
  3. openssl decryption
    By kakashi316 in forum C Programming
    Replies: 1
    Last Post: 03-24-2012, 11:02 AM
  4. Need help with OpenSSL
    By Ricardo_R5 in forum C Programming
    Replies: 0
    Last Post: 05-07-2007, 06:18 PM
  5. Using OpenSSL with Dev-C++
    By Smiley10 in forum C Programming
    Replies: 2
    Last Post: 07-08-2006, 10:27 AM