Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

REST API Certificates

Direct answer

Certificates bind an API server identity to the client trust decision. Validate the intended name, chain and validity.

When to use this

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.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when a client rejects an API server's certificate, before a certificate expires, or when replacing a self-signed…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

An encrypted connection with validation disabled is not proof of the intended server identity.

Key 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.

ReferenceWhat it is1 section · depth on demand
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

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)

FieldUse
Subject / subjectAltNameThe name clients check (for example ctrl.example.net)
IssuerChains the certificate to a CA
ValidityExpired certificates must fail
Key usageRestricts what the key may do
Extended key usageServer authentication, client authentication
Basic constraintsWhether the certificate is a CA (required with keyCertSign)

Server and client certificates

CertificateProves
Server certificateThe 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

PracticeReason
Use an internal or public CA, not self-signedClients can validate
Include every host name in subjectAltNameName checks succeed
Monitor expiry and automate renewalExpired certificates stop automation
Protect private keysHardware or restricted file permissions
Revoke on compromiseCRL 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

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 clientopenssl x509 -noout -subject -issuer -dates -ext subjectAltName

Expected 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.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Confirmation

Confirm action

Continue?