Thread: RSA generate keys without password

  1. #1
    Registered User surgeon's Avatar
    Join Date
    Jan 2015
    Posts
    26

    RSA generate keys without password

    Hi, I'm generating rsa keys using openssl library.

    Code:
    rsa = RSA_generate_key(bits, RSA_F4, NULL, NULL);
    While generating (and loading key from file), app wants me to enter PEM pass phrase.
    Can i generate keys and load them without pass phrase?
    Thanks.

  2. #2
    Registered User surgeon's Avatar
    Join Date
    Jan 2015
    Posts
    26
    any thoughts?

  3. #3
    Guest
    Guest
    The documentation says that RSA_generate_key is deprecated, no? So use RSA_generate_key_ex. Maybe you're not providing sufficient data in your code itself. I'd be surprised if you couldn't Google a solution, this is not C++ specific.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Generate unique hashtable keys
    By Aslaville in forum C Programming
    Replies: 2
    Last Post: 09-19-2015, 08:52 PM
  2. Replies: 1
    Last Post: 06-29-2014, 02:08 AM
  3. Replies: 2
    Last Post: 01-07-2009, 10:35 AM
  4. generate a random password
    By mabufo in forum C++ Programming
    Replies: 17
    Last Post: 02-23-2006, 05:57 PM
  5. auto generate password
    By Coconut in forum C Programming
    Replies: 4
    Last Post: 09-29-2002, 03:55 AM

Tags for this Thread