openssl - Sign certificate request error "Expecting trusted request" -
i tried use openssl sign cert request own ca. there 2 options.
openssl x509
.openssl x509 -req -ca ca.crt -cakey ca.pem -in bob.csr -out bob.crt -cacreateserial`
some posts x509 used generate self-signed certificates.
but error occurs using openssl x509
:
unable load certificate 6612:error:0906d06c:pem routines:pem_read_bio:no start line:.\crypto\pem\pem_lib.c:701:expecting: trusted certificate
openssl ca
:openssl ca -in bob.csr -out bob.crt -keyfile ca.key
it needs config openssl.config beforehand. e.g., create dir ./democa
.
please let me know way correct. if openssl x509
correct, how solve expecting trusted certificate
error? appreciate!
please let me know way correct. if openssl x509 correct, how solve expecting trusted certificate error? appreciate!
you use openssl x509
work certificates. since don't have certificate, should not use openssl x509
.
you use openssl req
signing requests. if use just openssl req
, create signing request.
if use openssl req -x509
, create self signed certificate. forgoes signing request , moves directly certificate.
if need becoming own ca, see how sign certificate signing request certification authority?
if need signing requests , well-formed certificates, see how create self-signed certificate openssl?.
Comments
Post a Comment