[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Onion Public Key



I am unable to read an Onion Public Key using the following OpenSSL command(the public key file is named pub):
 
openssl rsa -in pub -text -pubin
 
This command produces the following errors:
 
$ openssl rsa -text -in k -pubin
unable to load Public Key
2428:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:
1294:
2428:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:ta
sn_dec.c:380:Type=X509_ALGOR
2428:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 e
rror:tasn_dec.c:749:Field=algor, Type=X509_PUBKEY
2428:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_oth.c:83:
 
 
Any ideas on how to get this to work?