Hello,
> > You should cat real PEM encoded cert and key.
> >   
> I assume from what you write I should create a pem file out of the crt file:
> 
> server167# openssl base64 -d -in mrtablecloth-vi.com.crt | openssl rsa
> -inform der > mrtablecloth-vi.com.crt.pem
> 
> However, when I try that, I get this error:
> 
> unable to load Private Key
> 93906:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/asn1/tasn_dec.c:946:
> 93906:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested
> asn1
> error:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/asn1/tasn_dec.c:628:
> 93906:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_D2I:nested
> asn1
> error:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/asn1/tasn_dec.c:566:Field=version,
> Type=RSA
> 93906:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1
> lib:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/asn1/d2i_pr.c:96:
> 
> Why can't it load the key? Here's a list of what's in the dir:
You should convert your private key to PEM format too.
This error is probably because certificate is read as RSA key.
Convert both files to PEM (files with ---- BEGIN header),
cat both files to one file and use in your configuration.

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

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

Reply via email to