HTTPS is HTTP inside TLS: the connection is encrypted, and the server proves its name with a certificate. curl checks three things: it's for the name you asked for, it hasn't expired, and an authority this machine trusts signed it. ops trusts the office's own.
curl -v https://
-v shows the certificate the server sent, and whether it checked out.
learner@ops:~$ curl -v https://shop.monster.market
…
* Server certificate:
* subject: CN=shop.monster.market ← the name it's for
* start date: Nov 18 23:49:56 2026 GMT
* expire date: Dec 22 23:49:56 2027 GMT ← good until
* subjectAltName: host "shop.monster.market" matched cert's "shop.monster.market"
* issuer: O=Monster Market; CN=Monster Market Office CA ← who signed it
* SSL certificate verify ok.
…When a check fails, curl stops before sending anything, with exit code 60:
learner@ops:~$ curl https://old.monster.market
curl: (60) SSL certificate problem: certificate has expired
…A wrong name is often yours: an address, a short name like web, or a stale hosts line gets it too. Ask for the name the certificate is for. If that fails, or the certificate expired, whoever runs the server needs a new one.
Objectives
- Who signed the shop's certificate?
- Why curl refuses wrong.monster.market.