This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) 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

JCE and binary private keys

carlos olmos

Joined: May 28, 2003
Posts: 12

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.

I agree. Here's the link:
subject: JCE and binary private keys
It's not a secret anymore!