When i run CA.all script to generate the certificates, all the certificate get generated except root.cer and get the below error message:
+ openssl pkcs12 -export -in demoCA/cacert.pem -inkey newreq.pem -out root.p12 -cacerts -passin 'pass:whatever' -passout 'pass:whatever'
No certificate matches private key
+ openssl pkcs12 -in root.p12 -out root.pem -passin 'pass:whatever' -passout 'pass:whatever'
17703:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:150:
+ openssl x509 -inform PEM -outform DER -in root.pem -out root.der
unable to load certificate
17704:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: TRUSTED CERTIFICATE
+ echo -e ''
I deleted the newcert.pem and newreq.pem but still it didnt work.
Did a fresh installation of openssl 0.9.8 but still get this error message and tried with different passin key and DN. can someone help me to resolve this issue.
Thanks,
Kartthik