"Hellan,Kim KHE" wrote:
> 
> I'm trying to use OpenSSL (0.9.6) to read an RSA public key (PKCS#1, DER
> encoded).
> I use the following command:
>   openssl rsa -inform DER -in publickey.der -pubin
> 
> This gives the following errors:
> 
> unable to load key
> 1404:error:0D0A0007:asn1 encoding routines:d2i_X509_ALGOR:expecting an asn1
> sequence:.\crypto\asn1\x_algor.c:85:address=4189187 offset=0
> 1404:error:0D0AA004:asn1 encoding routines:d2i_X509_PUBKEY:nested asn1
> error:.\crypto\asn1\x_pubkey.c:86:address=4189184 offset=3
> 
> Does this look like an error in the key or am I using the wrong OpenSSL
> methods?
> 

The PKCS#1 RSA public key format isn't supported on the command line.
There are however various functions that support it.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to