All,

When writing an RSA private key to a file as below...

RSAES_OAEP_SHA_Decryptor private_key (*rng, p_bits);
HexEncoder private_key_file (
                new FileSink p_pv_file_name.c_str ());


private_key.DEREncode (private_key_file);
private_key_file.MessageEnd ();

Can anyone confirm the format it has been saved in? By this I mean that
too me it looks like its been DER encoded and then hex encoded. 

I need to open this key in a Java app (again) using Sun's JCE. Can the
key be DER (or is it BER?) decoded after it has been hex decoded? Or can
I save this RSA key out to a file in a different way? One that JCE
supports such as PKCS12?

Any help appreciated as always...

Regards

Jim Vanns



-- 
James Vanns BSc (Hons) MCP
Linux Systems Administrator
Software Engineer (Linux / C & C++)
Canterbury Christ Church University College
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370


Reply via email to