Dear OpenSLL users,

first of all, let me point out that I'm a total newbie in the
area of encryption. So maybe, my question could sound stupid ...

I'm using OpenSSL 0.9.8a-7build1 on Kubuntu Dapper.
And i just would like to create a PEM certificat file with two DER encrypted file(i need to do that for my wifi setup). Before all, i've verified that i can read this file with the following command:
openssl x509 -inform DER -in FILE.cer -noout -text
Then i've tried the following command(to convert the file):
openssl rsa -inform DER -outform PEM -in FILE.cer -out FILE.pem
And i get the following result:

unable to load Private Key
8211:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1282: 8211:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:tasn_dec.c:824: 8211:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:743:Field=version, Type=RSA 8211:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib:d2i_pr.c:99:

I've tried this command too: openssl rsa -in FILE.cer -outform PEM -out FILE.pem
And get the following error:
unable to load Private Key
5527:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: ANY PRIVATE KEY

Does it means that i need a private key to do it??
Is there someone who can help me??
Thanks in advance for your comments and best regards,
Arnaud
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to