xcard will write binary, not PEM. openssl was expecting PEM.
From: Carl Youngblood <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED], MUSCLE <[EMAIL PROTECTED]> To: MUSCLE <[EMAIL PROTECTED]> Subject: Re: [Muscle] How to create a cert from generated keys Date: Tue, 20 Jul 2004 15:56:10 -0700
> Try to do: > openssl rsa -inform PEM -in public_key_file -pubin -modulus -text > openssl rsa -inform PEM -in private_key_file -modulus -text
Apparently the format that XCard created is not recognized. key0 and key2 are the filenames I had it export to. key0 was the "RSA Priv CRT" and key 2 was the "RSA pub key." Here is the output from openssl.
[EMAIL PROTECTED] pkcs11test]$ openssl rsa -inform PEM -in key0 -modulus -text unable to load Private Key 12212:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: ANY PRIVATE KEY [EMAIL PROTECTED] pkcs11test]$ openssl rsa -inform PEM -in key2 -pubin -modulus -text unable to load Public Key 12215:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: PUBLIC KEY
> I suspect a bug in the Java Card. Are you using the latest version?
No. I will change over to the newer version.
Thanks,
Carl _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
