On Tue, Jul 28, 2009, Bizhan Gholikhamseh (bgholikh) wrote:

>  
> 
> > HI ALL,
> > I have a binary format of a public key which is in 
> > "BASE64-encoded public key in RSA PKCS#1 format".
> > How could I convert that to a PEM format?
> > 
> Here is another data set:
> TO get the binary format I ran the following command:
> 
> openssl asn1parse -inform d -in key.bin 
>      0:d=0  hl=2 l= 107 prim: priv [ 29 ]       
>    109:d=0  hl=2 l=  30 prim: priv [ 6 ]        
>    141:d=0  hl=2 l=  25 prim: priv [ 16 ]       
>  Error in encoding
>  22295:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too
>  long:asn1_lib.c:150:
> 

Well asn1parse wont handle base64 decoding with -inform d. Try it without that
option.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to