-
I copied my CA certificate (
server.crt
) to/etc/pki/ca-trust/source/anchors/
. -
I ran the
update-ca-trust
command to update the certificate trust store. -
I checked the certificate in
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
to see if it was included, but it doesn’t seem to be there.
I used openssl x509 -in server.crt -noout -text
to checked my certificate is right
but I used curl -v https://my-server.com
not work and show the error
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Unknown (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Unknown (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS header, Unknown (21):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate