aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JCE and binary private keys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JCE and binary private keys" Watch "JCE and binary private keys" New topic
Author

JCE and binary private keys

carlos olmos
Greenhorn

Joined: May 28, 2003
Posts: 12
Hello:

I'm writing a program to digitally sign documents.

I'm using JCE and keytool to manage the RSA keys and certificates.

Here is my problem:

I need to load the user existing RSA private keys and certificates. I got a sample file for a RSA private key, but it's in binary format (apparently a requirement for this program). I've tried to use the keytool, the JCE KeyFactory class and even openssl rsa utility to open this file without success. Aparently each one of this methods require the file in text format (PEM or DER) to read the key.

Any idea on how to open a RSA Binary private key?

Thanks in advanced.

C.
 
wood burning stoves
 
subject: JCE and binary private keys