Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

loading java created RSA public key using openssl in Linux

843811Feb 7 2007
Hi,

I created RSA public and private key using Java JCE libraries. Just for testing i wanted to see whether we can use the publick key to decrypt the data on different platform.

I created the RSA keys in Windows using Java,
Now i want to use the Java created RSA publc key to encrypt a data in linux using openssl.

When i issue following command in Linux.
i get unable to load Public Key error message.
openssl rsautl -inkey public_asn1.key -pubin -pkcs -in test.txt -encrypt

Why this Java created RSA public key is not readable by OpenSSL in linux?
Is only java program can read the RSA keys??


Any help is appreciated.

Thanks
-Pradeep


Is
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2007
Added on Feb 7 2007
0 comments
230 views