I have a certificate and private key in pem format, I want to convert into.crt file for that I have run below commands.
cat csr.pem privatekey.pem >combined.pem
openssl-0.9.8k_X64\bin\openssl x509 -outform der -in combined.pem -out certificate.crt
But, getting below error: unable to load certificate 91172:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:650:Expecting: TRUSTED CERTIFICATE
A crt file usually contains a single certificate, alone and without any wrapping (no private key, no password protection, just the certificate).
If you require the private to be in a file along with the public key then the output file should be a pfx file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.