When i run CA.all script to generate the certificates, all the certificate get generated except root.cer and get the below error message:
<br>
<br>+ openssl pkcs12 -export -in demoCA/cacert.pem -inkey newreq.pem -out root.p12 -cacerts -passin 'pass:whatever' -passout 'pass:whatever'
<br>No certificate matches private key
<br>+ openssl pkcs12 -in root.p12 -out root.pem -passin 'pass:whatever' -passout 'pass:whatever'
<br>17703:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:150:
<br>+ openssl x509 -inform PEM -outform DER -in root.pem -out root.der
<br>unable to load certificate
<br>17704:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: TRUSTED CERTIFICATE
<br>+ echo -e ''
<br>
<br>I deleted the newcert.pem and newreq.pem but still it didnt work.
<br>
<br>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.
<br>
<br>Thanks,
<br>Kartthik