REST API Certificates
Cheat sheet · https://pcornel.dk/topic.php?topic=1551
Answer
Certificates bind an API server identity to the client trust decision. Validate the intended name, chain and validity.
Remember
An encrypted connection with validation disabled is not proof of the intended server identity.
First checks
openssl s_client -connect host:443 -servername host </dev/null | openssl x509 -noout -subject -issuer -dates -ext subjectAltName → name, issuer, validity and SAN of the certificate actually presented. Check that the client trusts the issuing CA.
Verify in this order
server presents certificate and chain → client builds the chain to a trusted root → host name found in the SAN → validity dates current → revocation where checked → trusted
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1551