I am working on a system where I need to store an RSA private key on a server.
I intend to use OpenSSL to generate the private key and to apply a passphrase to it so that the private key is encrypted on the server.
Can anyone tell me what process OpenSSL uses to encrypt the private key? In other words, how does it use the passphrase to generate an encrypted version of the private key?
I believe that TripleDES is used here somehow to symmetrically encrypt the private key. Is there a salt added to the passphrase, or can a salt be added somehow to make it more secure?
Any advice that you can give would be much appreciated.