Use it when a client rejects an API server's certificate, before a certificate expires, or when replacing a self-signed certificate on a device.
REST API Certificates
Certificates bind an API server identity to the client trust decision. Validate the intended name, chain and validity.
1. openssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltName.
2. The hostname must be in the SAN; the chain must reach a trusted root.
3. Track expiry dates and renew automatically.
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
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
Inspect the certificate actually presented to the intended hostname from the real client path. Review certificate trust and validity separately from application login.
Step 2 Common mistakes Narrow the fault
- Missing SAN entries.
- Self-signed certificates trusted everywhere.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
An encrypted connection with validation disabled is not proof of the intended server identity.
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.
ReferenceWhat it is1 section · depth on demand
Direct Answer
Certificates bind an API server identity to the client trust decision. Validate the intended name, chain and validity.
ReferenceHow it works1 section · depth on demand
Technical Mechanics
Use PKI and TLS for PKI/TLS foundations; HTTP / HTTPS Management owns device HTTPS certificate/service context. Plan renewal and trust distribution before certificates expire.
ReferenceImportant terms & boundaries4 sections · depth on demand
Official Sources
Proof Boundaries
An encrypted connection with validation disabled is not proof of the intended server identity.
In depth
Certificates in API security
Certificates bind a public key to an identity and are used both for server authentication (HTTPS) and for client authentication (mutual TLS). RFC 5280 profiles X.509 v3 certificates: an issuer name, a validity period with inclusive notBefore and notAfter bounds, a subject (which may be empty when the identity is in subjectAltName), the subject public key, and extensions, which must be rejected if critical and unrecognised.
Fields that matter for APIs (RFC 5280)
| Field | Use |
|---|---|
| Subject / subjectAltName | The name clients check (for example ctrl.example.net) |
| Issuer | Chains the certificate to a CA |
| Validity | Expired certificates must fail |
| Key usage | Restricts what the key may do |
| Extended key usage | Server authentication, client authentication |
| Basic constraints | Whether the certificate is a CA (required with keyCertSign) |
Server and client certificates
| Certificate | Proves |
|---|---|
| Server certificate | The API endpoint is genuine |
| Client certificate (mTLS) | The caller is a known machine or service |
admin$ openssl s_client -connect ctrl.example.net:443 -servername ctrl.example.net </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates -ext subjectAltName
subject=CN = ctrl.example.net
issuer=CN = Example Corp Issuing CA 2
notBefore=Mar 1 00:00:00 2026 GMT
notAfter=Feb 28 23:59:59 2027 GMT
X509v3 Subject Alternative Name:
DNS:ctrl.example.net, DNS:ctrl01.example.net
admin$ curl -s --cert automation.crt --key automation.key --cacert corp-ca.pem https://ctrl.example.net/api/v1/health
{"status":"ok"}
Operating certificates for APIs
| Practice | Reason |
|---|---|
| Use an internal or public CA, not self-signed | Clients can validate |
| Include every host name in subjectAltName | Name checks succeed |
| Monitor expiry and automate renewal | Expired certificates stop automation |
| Protect private keys | Hardware or restricted file permissions |
| Revoke on compromise | CRL or OCSP checked by clients |
Pin certificates or keys in automation only with a plan for rotation, or renewals break scripts.
Documented example, not captured output.
Quick reference
Certificates in API security: server certificates let clients verify they talk to the real API (no -k/verify=False in production scripts), and client certificates (mTLS) authenticate machines.
curl --cacert corp-root.pem https://dnac.corp.example.com/...
requests.get(url, verify='/etc/ssl/certs/corp-root.pem')
openssl s_client -connect dnac:443 -showcerts
Scripts that disable verification are vulnerable to interception and leak credentials — install the internal CA instead.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Expected output
openssl x509 -noout -subject -issuer -dates -ext subjectAltNameExpected state: Subject, issuer, dates and SAN of the presented certificate.
subject=CN = api.example.net
issuer=CN = Example Issuing CA
notBefore=Sep 1 00:00:00 2026 GMT
notAfter=Sep 1 23:59:59 2027 GMT
X509v3 Subject Alternative Name:
DNS:api.example.net
! Illustrative output, not captured Evidence.Clients compare the host name they connect to with the SAN entries, not with the CN. The certificate here is valid for api.example.net until 1 September 2027; connecting by IP address or another name would fail validation.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → REST API Security → Certificates. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%