I am trying to convert .pem file to .der which was given to me using OpenSSL but not successful. .pem file is password protected. File contains both certificate and private key
Command used
openssl x509 -outform der -in certificate.pem -out certificate.der
I get this error
unable to load certificate
540409864:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto/asn1/tasn_dec.c:1130:
540409864:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:290:Type=X509
540409864:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:crypto/pem/pem_oth.c:33:
Please advice how I can resolve this, thanks