Thanks for the response. First I am running this on Windows 7. Questions 1. How can I determine what key format my ca.key is in? 2. You say there are multiple key formats for the same key, but for my peace of mind I would like to get the same key format that I originally had. How can I do this? > Date: Tue, 6 Jan 2015 02:48:13 +0000 > From: openssl-users at dukhovni.org > To: openssl-users at openssl.org > Subject: Re: [openssl-users] Need help encrypting my ca.key > > On Mon, Jan 05, 2015 at 08:37:24PM -0600, jack seth wrote: > > I must be doing something wrong but I can't figure out what it is. I am trying to encrypt my private ca key with this command > > > > openssl rsa -in ca.key -out caencrypted.key -aes256 > > > > This works fine but the problem is I don't get the original key back when I decrypt it using this command > > > > openssl rsa -in caencrypted.key -out catest.key > > > > > > catest.key doesn't have the same characters in it as ca.key when looking at them in a text editor. What am I missing here? > > There are multiple possible key formats for the same key. Instead > compare the outputs of: > > $ umask 077 > $ openssl rsa -in ca.key -noout -text > txt1 > $ openssl rsa -in catest.key -noout -text > txt2 > $ diff txt1 txt2 > > -- > Viktor. > _______________________________________________ > openssl-users mailing list > openssl-users at openssl.org > https://mta.opensslfoundation.net/mailman/listinfo/openssl-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mta.opensslfoundation.net/pipermail/openssl-users/attachments/20150105/688edc65/attachment.html>