CLOUD CONCEPT

Public Key Infrastructure

Public Key Infrastructure is the system of certificates, trusted authorities, policies, and processes used to bind identities to public keys and manage that trust over time.

Cloud Concepts Hub →

What is Public Key Infrastructure

Public Key Infrastructure (PKI) allows systems to verify that a public key belongs to the expected server, user, device, or organization. In cloud environments, it supports authenticated TLS connections, mutual TLS, and digital signatures while requiring careful protection of private keys and management of certificate lifecycles.

Public Key Infrastructure establishes trust in public keys through digitally signed certificates, usually using the X.509 standard. A certificate associates a public key with an identity and includes information such as its issuer, validity period, and permitted uses. The corresponding private key remains confidential. A certificate is not a secret, and possessing a copy does not enable an attacker to impersonate its owner without the private key.

A certificate authority (CA) signs certificates after the required identity checks and authorization steps. Clients validate a certificate chain from the presented certificate through any intermediate CAs to a root they already trust. Root trust comes from a configured trust store, not simply from a root certificate being self-signed. Production hierarchies often keep the root CA offline and use subordinate CAs for routine issuance, reducing exposure of the most consequential signing key.

During a TLS connection, the client checks the certificate chain, validity dates, intended usage, and expected identity, such as a DNS name in the subject alternative name extension. The server proves possession of the corresponding private key through the TLS protocol. TLS then uses symmetric session keys to protect application traffic; certificates do not directly encrypt all transmitted data. With mutual TLS, both peers authenticate using certificates, but applications still need authorization rules to decide what an authenticated peer may do.

Publicly trusted certificates are appropriate for endpoints accessed by ordinary browsers and other clients using public trust stores. Private certificates support internal services, enterprise devices, and workloads whose clients can be configured to trust an organizational CA. For example, an internal payment API can require client certificates issued by a dedicated subordinate CA. Issuance policy and application authorization should prevent a certificate intended for one workload from granting unrestricted access to unrelated services.

Certificate management includes secure key generation, certificate signing requests, controlled issuance, deployment, renewal, revocation, and eventual retirement. A signing request contains a public key and requested identity information, not the private key. Automating renewal reduces expiration outages, but issuing a replacement certificate is insufficient unless it reaches every endpoint and the service reloads it. Revocation through certificate revocation lists or the Online Certificate Status Protocol also depends on client support and configuration; publishing revocation information does not guarantee that every client checks it. Short-lived certificates reduce the remaining lifetime of compromised credentials but increase reliance on dependable issuance automation.

In AWS, Private Certificate Authority provides managed private CAs, while Certificate Manager handles certificate provisioning and supported deployment and renewal workflows. AWS KMS manages cryptographic keys but is not a CA and does not provide an X.509 certificate issuance lifecycle. KMS asymmetric signing can support custom signing applications, but it does not replace identity validation, certificate policy, or revocation infrastructure. Protect CA signing keys with tightly controlled access and hardware-backed cryptography, and separate certificate-request permissions from CA administration.

Multi-Region design requires separate planning for key availability, certificate deployment, and trust. One approach uses regional subordinate CAs beneath a common organizational root, allowing clients to trust a shared hierarchy while issuance remains regionally distributed. AWS Private CA resources are regional, and creating another CA does not replicate an existing CA's signing key. Likewise, related KMS multi-Region keys share key material but do not replicate certificates, trust stores, or a PKI. Certificates for regional AWS endpoints generally need deployment in the endpoint's Region; CloudFront requires ACM certificates in US East (N. Virginia). Test regional failover, renewal, and revocation access before an outage.

The main trade-off is operational control versus operational responsibility. A private hierarchy gives an organization control over identities and issuance policy, but requires trust-store distribution, monitoring, incident response, and recovery planning. A compromised leaf key usually affects its certificate identity; a compromised CA signing key can undermine every identity within that CA's scope. Minimize that scope through subordinate hierarchies, issuance restrictions, least-privilege administration, and auditable lifecycle operations.

Key aspects of Public Key Infrastructure

PKI combines verifiable identity, protected private keys, explicit trust relationships, and dependable certificate lifecycle operations.

Identity binding and certificate validation

Certificates bind public keys to identities under an issuer's policy. Clients must validate the chain, expected identity, validity period, and permitted usage rather than merely checking that a certificate is signed.

Trust anchors and CA hierarchy

Trust begins with root certificates explicitly accepted by clients. Use subordinate CAs to separate environments or workloads and limit routine exposure of root signing keys.

Private-key protection

Protect private keys with restrictive access controls and hardware-backed storage where appropriate, especially for CA signing keys. Certificate distribution can be broad, but private-key distribution should be minimized and carefully controlled.

Automated certificate lifecycle

Automate issuance, deployment, renewal, and expiration monitoring as one workflow. Confirm that renewed certificates are actually loaded by endpoints and that imported or custom-managed certificates have an explicit renewal owner.

Revocation and compromise response

Plan how clients obtain and enforce revocation information, including behavior when status services are unavailable. Replacing a compromised key requires issuing and deploying a certificate for a new key, not merely renewing a certificate that reuses the compromised key.

Regional resilience and consistent trust

Design regional issuance and certificate deployment independently from cryptographic key replication. Distribute appropriate trust anchors and intermediate certificates, and test authentication during regional failover.

Cloud services for Public Key Infrastructure

AWS Private CA establishes private certificate trust, while ACM manages certificate workflows and deployment to supported endpoints. AWS KMS addresses cryptographic key management rather than certificate issuance; its permissions, rotation, and multi-Region capabilities must not be confused with PKI lifecycle controls. AWS CloudHSM is an option for protecting signing keys used by self-managed CA software. CloudTrail provides an audit trail for supported administrative and lifecycle actions. Together, these services support separate responsibilities for trust, certificate delivery, key protection, and auditing, but engineers must still design client trust stores, authorization, revocation enforcement, and regional recovery.

AWS Private Certificate Authority image AWS Private Certificate Authority

Provides managed root and subordinate private CAs for issuing certificates to internal workloads, users, and devices. It supports certificate revocation mechanisms, but clients must trust the appropriate hierarchy and enforce certificate validation.

Open AWS Private Certificate Authority →
AWS CloudHSM image AWS CloudHSM

Provides dedicated hardware security modules that can protect private keys for compatible, self-managed CA software. The organization remains responsible for CA software, issuance policy, certificate lifecycle management, and resilient HSM architecture.

Open AWS CloudHSM →
AWS CloudTrail image AWS CloudTrail

Records supported API activity for services involved in certificate and key management. Use these records to investigate CA configuration changes, issuance activity, and key administration, while separately monitoring endpoint certificate validity and deployment.

Open AWS CloudTrail →