loading java created RSA public key using openssl in Linux
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