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