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!

How to run a openssl command from a java program

843811Feb 22 2010 — edited Feb 24 2010
Hi All

Please suggest on how to run a openssl command from a java program.

I am using this

Runtime runtime = Runtime.getRuntime();
runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");

This is suppose to take test.der as input and create result.pem.

There are no errors but the file result.pem isnt created.

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2010
Added on Feb 22 2010
13 comments
4,532 views