Thanks Jacob.

Output of 
#less evalRootCertificate.cer

-----BEGIN CERTIFICATE-----
MIICBDCC.............MVWn1dH/IzvUWbQ==
-----END CERTIFICATE-----

I even tried removing the following file lines

-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

# openssl x509 -inform der -in evalRootCertificate.cer -out steel.pem
unable to load certificate
8771:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
tag:tasn_dec.c:1316:
8771:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
error:tasn_dec.c:380:Type=X509

--uv.

>

Jakob Bohm-7 wrote:
> 
> On 9/18/2011 3:48 PM, ubuntuv wrote:
>> hi,
>>
>> I have created root CA(evalRootCertificate.cer) and server
>> certificate(OdysseyServer.pfx) using 'evalCerts.exe' of Funk software. 
>> For
>> using evalRootCertificate.cer on linux, I wanted to convert to .pem
>> format,
>> I issued the command
>>
>> # openssl x509 -inform der -in evalRootCertificate.cer -out steel.pem
> Try
> 
> less evalRootCertificate.cer
> 
> If it looks like a text file with a lot of dashes on the first line, it 
> is already in PEM format and you will get
> the error below.
>> unable to load certificate
>> 3659:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
>> tag:tasn_dec.c:1316:
>> 3659:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
>> error:tasn_dec.c:380:Type=X509
>>
>> Could someone tell me if I my command is wrong.
>>
>> Thanks in advance.
>> uv.
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Error-converting-from-.cer-to-.pem-tp32489500p32495540.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to