The site app.lab.test got a new certificate, and nginx already serves it over HTTPS. The root Lab Root CA, just as in the previous lesson, is in the machine's trust store. Check the site and see who issued its certificate.
Request app.lab.test
Request the home page https://app.lab.test/ and see who issued the site's certificate — the file /etc/nginx/tls/app.crt.
First, predict
What will curl print?
Now start the exercise, run the command and compare your prediction with the output.
Lab Root CA is in the trust store, yet curl says unable to get local issuer certificate. Why?
-
It was:
ls /usr/local/share/ca-certificatesshows lab-root-ca.crt. The root is in place — the link between it and the site is missing. -
About expiry, curl says
certificate has expired.openssl x509 -in /etc/nginx/tls/app.crt -noout -datesshows the certificate is within its validity. -
Without nginx, curl would print
Couldn't connect to server. It received a certificate, so nginx answered.
Between the site's certificate and the root in the store, one link is missing — Lab Issuing CA.