Public Key Infrastructure

Comprehensive guide to Public Key Infrastructure design, implementation, and management for secure digital identity and certificate lifecycle

Understanding Public Key Infrastructure

A Public Key Infrastructure is a set of hardware, software, people, policies and procedures, required to issue, manage, distribute, use, store and revoke digital certificates.

At its core, PKI combines cryptographic techniques, certificate management processes and governance policies to establish and maintain trust in digital identities and public keys.

The core functional components of a PKI typically include:
  • Certificate Authority (CA): An entity responsible for issuing and digitally signing certificates. A CA may be operated internally or provided by an external trusted service provider;
  • Registration Authority (RA): A function responsible for verifying certificate applicants and approving certificate requests according to defined policies. This function may be integrated into the CA;
  • Certificate and Revocation Repositories: Mechanisms for publishing and distributing certificates, Certificate Revocation Lists (CRLs) and related information. These may use HTTP, LDAP or other technologies, depending on the architecture;
  • Management Functions: Tools and processes for managing certificate issuance, renewal, revocation, policies, monitoring and reporting.
Depending on the intended use and security requirements, a PKI may also incorporate Hardware Security Modules (HSMs), certificate lifecycle management solutions and automated certificate enrolment mechanisms.

Some Terminology

Encryption

Encryption is the process of transforming information into an unreadable form, known as ciphertext, using a cryptographic algorithm and an encryption key. Only parties possessing the appropriate decryption key can recover the original information.

Encryption does not prevent data from being intercepted, but protects its confidentiality by making intercepted information computationally infeasible to decipher without the required key. Encryption is widely used to protect data at rest and in transit. For secure network communications, Transport Layer Security (TLS) is one of the most commonly used protocols.

TLS is the successor to Secure Sockets Layer (SSL), which is now obsolete. Modern implementations use TLS 1.2 or TLS 1.3, with TLS 1.3 providing improved security and a simplified handshake.

Plaintext and Ciphertext

Plaintext refers to information or data in an unencrypted, or unprotected, form. Ciphertext refers to the output of an encryption algorithm operating on plaintext. Ciphertext is unreadable without knowledge of the algorithm and a secret key.

Algorithms and Keys

An encryption algorithm is a step-by-step set of instructions that specifies precisely how plaintext is transformed into Ciphertext.

Asymmetric-key Encryption

Asymmetric-key cryptography, also known as public-key cryptography, uses a mathematically related pair of keys: a public key and a private key.

The public key can be distributed openly, while the private key must remain protected. Depending on the cryptographic algorithm, asymmetric cryptography can be used for encryption, digital signatures or key establishment. For public-key encryption, a sender uses the recipient's public key to encrypt information, which can subsequently be decrypted using the corresponding private key. RSA is a widely known asymmetric algorithm that can support encryption and digital signatures. Elliptic Curve Cryptography (ECC) is a family of cryptographic techniques commonly used for digital signatures, such as ECDSA, and key agreement, such as ECDH.

Modern cryptographic architectures are also evolving to incorporate Post-Quantum Cryptography (PQC), including algorithms such as ML-KEM for key encapsulation and ML-DSA for digital signatures.

Asymmetric cryptography is fundamental to PKI because it enables digital certificates to associate public keys with identities and supports cryptographic authentication and digital signatures.

Traditional asymmetric algorithms such as RSA and ECC are vulnerable to attacks by sufficiently powerful quantum computers. Post-quantum algorithms are being introduced to address this risk, making crypto-agility and algorithm migration increasingly important considerations for modern PKI architectures.

Asymmetric Encryption Diagram

Symmetric-key Encryption

Symmetric encryption uses a single "key" for both encryption and decryption. The fundamental concern with this method is making sure that the intended recipient indeed is the one to receive the key.

The most common form of symmetric encryption is AES.

The advantage of this over asymmetric encryption is that it is quicker to encrypt/decrypt by using a smaller key for the same level of protection, and simple to understand.
Symmetric Encryption Diagram

Hybrid Encryption

Hybrid encryption combines asymmetric and symmetric cryptographic techniques to benefit from the strengths of both approaches.

Asymmetric cryptography is used to securely establish or transport cryptographic key material, while symmetric encryption is used to efficiently protect the actual data.

In a traditional hybrid encryption scheme, a randomly generated symmetric key is encrypted using the recipient's public key. The recipient uses the corresponding private key to recover the symmetric key, which is then used to decrypt the protected data.

Modern secure communication protocols, such as TLS 1.3, generally use a different approach. They establish shared secret material through ephemeral key agreement mechanisms, such as Elliptic Curve Diffie-Hellman Ephemeral (ECDHE), and derive symmetric session keys from that material. These session keys are subsequently used with authenticated encryption algorithms, such as AES-GCM or ChaCha20-Poly1305, to protect communications.

The use of ephemeral key agreement also provides forward secrecy, meaning that the later compromise of a server's long-term authentication key does not, by itself, expose previously recorded communications.

Symmetric Encryption Diagram

PKI Functions

The most common PKI functions are issuing certificates, revoking certificates, creating and publishing CRLs, storing and retrieving certificates and CRLs, and key lifecycle management. Enhanced or emerging functions include time-stamping and policy-based certificate validation.

Issuing certificates

The CA signs the certificate, thereby authenticating the identity of the requestor, in the same way that a notary vouches for the signature and identity of an individual. In addition, the CA "stamps" the certificate with an expiration date. The CA may return the certificate to the requesting system and/or post it in a repository.

Revoking certificates

A certificate may become invalid before the normal expiration of its validity period. For instance, an employee may quit or change names, or a private key may be compromised. Under such circumstances, the CA revokes the certificate by including the certificate’s serial number on the next scheduled CRL. Storing and retrieving certificates and CRLs The most common means of storing and retrieving certificates and CRLs is via a directory service, with access via LDAP. Other options include X.500 compatible directories, HTTP, FTP, and e-mail.

Timestamping

In addition to the content and authenticity of a transaction, the exact time of the transaction can be important. For instance, a transaction may have to be submitted by a certain time to be valid. The solution to having trusted transactions is to combine digital signatures with time-stamps. This can be accomplished by augmenting a PKI with a time-stamping service.

Key lifecycle management

Key lifecycle management encompasses the processes and controls required to securely manage cryptographic keys throughout their entire lifecycle, from generation and activation to use, rotation, backup where appropriate, archival and secure destruction. The lifecycle requirements depend on the purpose of the key, its cryptographic algorithm, the sensitivity of the protected information and applicable security policies. Effective key lifecycle management ensures that cryptographic keys remain protected, available when required and used only for their intended purposes.

Updating Keys

Cryptographic keys should be replaced or rotated according to defined security policies and cryptoperiods. A cryptoperiod is the period during which a cryptographic key is authorised for a particular use. There is no universally applicable rotation interval, as appropriate cryptoperiods depend on factors such as the key's purpose, algorithm, strength, usage, risk exposure and regulatory requirements.

For example, TLS server authentication keys, CA signing keys and data encryption keys may have significantly different lifecycle requirements.

Keys should also be replaced when compromise is suspected or confirmed, or when their continued use no longer satisfies applicable security requirements.

Backing Up Keys

The loss of a cryptographic private key can have significant operational consequences, particularly when the key is required to decrypt information or maintain critical cryptographic services.

However, not all private keys should be backed up or recoverable. Encryption keys may require secure backup or recovery mechanisms to ensure continued access to previously encrypted information. Signing and authentication keys require different considerations. Uncontrolled backup or duplication of these keys can increase the risk of unauthorised use and undermine accountability.

Where key backup is necessary, appropriate security controls must be implemented, including encryption, access restrictions, dual control and secure storage. For highly sensitive keys, such as Certification Authority private keys, Hardware Security Modules (HSMs) and documented key ceremonies are commonly used to protect backup and recovery operations.

Archiving Keys

Cryptographic keys may need to be retained after their active cryptoperiod has ended, depending on their intended purpose and applicable retention requirements.

Encryption keys may be archived to preserve access to previously encrypted information, such as documents, databases and email messages. Private signing keys, however, should generally not be archived for the purpose of verifying historical digital signatures. Signature verification relies on the corresponding public key, together with the relevant certificates, validation information and, where applicable, trusted timestamps. Archiving private signing keys unnecessarily increases the risk of unauthorised signature creation or identity impersonation.

Organisations should therefore establish separate archival and retention policies for encryption keys, signing keys and associated validation evidence.

Automated Key Lifecycle Management: A Critical PKI Function

The effort required to manage keys manually can limit the scalability of the PKI. Automated key management is a critical function for a large PKI.
Key Lifecycle Management

PKI Related Standards

PKI standards permit multiple PKIs to interoperate, and multiple applications to interface with a single, consolidated PKI.

In particular, standards are necessary for:
  • Enrollment procedures;
  • Certificate formats;
  • CRL formats;
  • Formats for certificate enrollment messages (client requests certificate, server issues certificate);
  • Digital signature formats.

The primary focus of interoperable PKI standards is the PKI working group of the Internet Engineering Task Force (IETF).

X.509

The foundational and most universally supported PKI standards are ISO/IEC 9594-8 (payable) and RFC5280. The primary purpose of X.509 is to define a standard digital certificate format.

Public-Key Cryptography Standards (PKCS)

PKCS is a series of standards covering PKI in areas of certificate enrollment and renewal, and CRL distribution. For PKI interoperability, the three most important PKCS standards are PKCS #7 (Cryptographic Message Syntax Standard), PKCS #10 (Certificate Request Syntax Standard) and PKCS #12 (Personal Information Exchange Syntax Standard).

Standards That Rely on a PKI

Most major security standards are designed to work with a PKI. For instance, Secure Sockets Layer (SSL), Transport Layer Security (TLS), Secure Multipurpose Internet Mail Extensions (S/MIME), Secure Electronic Transactions (SET) and IP Security (IPSEC), all assume, require or allow the use of a PKI.

Hash Functions

A cryptographic hash function is a mathematical function that transforms input data of arbitrary length into a fixed-length output, commonly referred to as a hash value or message digest.

Unlike encryption, hashing is a one-way operation and does not use a decryption key to recover the original input.

Cryptographic hash functions are designed to make it computationally infeasible to recover an input from its hash value or to find different inputs that produce the same hash value.

Hash functions are widely used in digital signatures, certificate fingerprints, integrity verification and other cryptographic operations.

Modern cryptographic applications commonly use hash functions from the SHA-2 and SHA-3 families.

Hash functions are also used in password protection, although passwords should be processed using dedicated password-hashing algorithms, such as Argon2id, scrypt or appropriately configured PBKDF2, together with unique salts, rather than relying on general-purpose hash functions alone.

Standard Hashing

Hash Function Diagram

Hashing and Salting

A salt is random data that is used as an additional input to the hash function
Hash Function Diagram

Advantages of Hashing

  • Preimage resistance: Given a hash value, it should be computationally infeasible to determine an input that produces that value;
  • Second-preimage resistance: Given an input, it should be computationally infeasible to find a different input producing the same hash value;
  • Collision resistance: It should be computationally infeasible to find any two different inputs that produce the same hash value;
  • Deterministic output: The same input always produces the same hash value;
  • Fixed-length output: A given hash algorithm produces a fixed-length digest, regardless of the size of the input;
  • Sensitivity to changes: Even a small change to the input will generally produce a substantially different hash value.

Digital Signatures

A digital signature is a cryptographic mechanism used to verify the authenticity and integrity of electronic data.

A digital signature is generated using a signing algorithm and the signer's private key. Depending on the algorithm, the signing process may involve hashing the message before or during signature generation. The resulting signature can be verified using the corresponding public key. Successful verification establishes that the signature is mathematically valid for the signed data and public key. When the public key is associated with a trusted digital certificate, additional assurance can be obtained about the identity of the signer.

Digital signatures support integrity, authentication and non-repudiation, subject to appropriate private-key protection, identity verification and operational controls. They do not inherently provide confidentiality.
Digital Signature Process

Digital Certificates

A digital certificate provides identity of a person, computer, system or organization. It allows those end-entities to exchange information securely over the internet. Digital certificates are generally issued by an official, trusted agency. The certificate contains the name of the certificate holder, a serial number, expiration dates, a copy of the certificate holder's public key (used for encrypting messages and digital signatures) and the digital signature of the certificate-issuing authority (CA) so that a recipient can verify that the certificate is real.

To establish trust in a digital certificate, the certificate's digital signature must be verified as part of a valid certification path leading to a trusted Certification Authority.

In a typical hierarchical PKI, a Root Certification Authority (Root CA) acts as the trust anchor. Root CA certificates are generally self-signed and are trusted through their inclusion in an operating system, browser, application or organisation-specific trust store.

Rather than directly issuing certificates to end users or systems, Root CAs commonly issue certificates to intermediate Certification Authorities. These intermediate CAs subsequently issue certificates to servers, applications, devices, users or other entities.

This creates a certificate chain connecting an end-entity certificate to a trusted root.

Certificate validation involves verifying the signatures along this chain and evaluating applicable constraints, certificate validity periods, revocation information and other relevant security requirements.

The use of intermediate CAs provides operational flexibility and reduces the need for frequent use of highly sensitive Root CA private keys.

Types of Digital Certificates

Domain Validated Certificates (DV)
Domain Validated (DV) certificates are TLS certificates issued after a Certificate Authority verifies that the applicant demonstrates control over the requested domain name.

DV certificates provide encrypted communications and domain authentication but do not establish the legal identity of the organisation operating the website.

They are widely used for commercial websites, APIs, cloud services and automated infrastructure. When properly configured, DV certificates provide the same cryptographic protection as OV and EV certificates using equivalent algorithms and key sizes. DV certificates are particularly suitable for automated certificate lifecycle management, including issuance and renewal through protocols such as ACME.

Organization Validated Certificates (OV)

Organisation Validated (OV) certificates require the Certificate Authority to verify both domain control and information about the legal organisation requesting the certificate.

The certificate includes verified organisational identity attributes, providing additional information about the certificate subscriber. OV certificates do not provide stronger TLS encryption than equivalent DV certificates. Their primary distinction is the additional organisational identity validation performed during issuance.

Organisations may choose OV certificates where verified organisational identity is required by contractual, regulatory or internal security policies.

Extended Validation Certificate (EV)
Extended Validation (EV) certificates are TLS certificates issued following enhanced verification of the legal identity and operational existence of the requesting organisation, in accordance with the CA/Browser Forum EV Guidelines.

EV certificates provide a higher level of organisational identity vetting than DV and OV certificates, but they do not offer stronger encryption or inherently greater protection against cyberattacks.

Modern web browsers generally do not display distinctive visual indicators for EV certificates in their main address bars. Organisational identity information may instead be accessible through certificate details.EV certificates may be appropriate where enhanced identity verification is required by organisational policies, contractual obligations or specific trust requirements.

Qualified Certificates
Qualified certificates are digital certificates issued by Qualified Trust Service Providers (QTSPs) in accordance with the EU eIDAS Regulation.

Qualified certificates for electronic signatures establish a verified association between a signatory and their public key and must satisfy the applicable regulatory requirements.

A Qualified Electronic Signature (QES) requires a qualified certificate for electronic signatures, a Qualified Electronic Signature Creation Device (QSCD) and compliance with the other applicable requirements of eIDAS. Under Article 25(2) of eIDAS, a Qualified Electronic Signature has the equivalent legal effect of a handwritten signature throughout the European Union.

Qualified certificates also exist for other trust services, including electronic seals and website authentication, each subject to its own requirements.

Client vs Server Authentication Certificates
Server certificates enable clients to authenticate servers, while client certificates enable servers to authenticate clients.

In mutual TLS (mTLS), both parties authenticate using certificates, providing stronger identity assurance for machine-to-machine and service-to-service communications.

Certificates do not themselves encrypt application traffic. In modern TLS, the handshake establishes symmetric encryption keys that are subsequently used to protect communications.

Client certificates are particularly useful for device authentication, enterprise applications, APIs and zero-trust architectures.

Certificate Authority (CA)

A CA issues and verifies certificates (see Digital Certificates). The CA takes responsibility for identifying (to a certain extent) the correctness of the identity of the person asking for a certificate to be issued, and ensures that the information contained within the certificate is correct and digitally signs it.

The CA could be seen as the PKI equivalent of a passport agency - the CA issues you a certificate after you provide the credentials they require to confirm your identity, and then the CA signs (stamps) the certificate to prevent modification of the details contained in the certificate.

Certificate Revocation

Certificate revocation provides a mechanism for indicating that a digital certificate should no longer be trusted before the end of its validity period.

Revocation may be necessary when a private key has been compromised, a certificate was issued incorrectly, or the conditions under which the certificate was issued are no longer satisfied.

Two commonly used mechanisms for distributing certificate revocation information are Certificate Revocation Lists (CRLs) and the Online Certificate Status Protocol (OCSP).
CRLs provide periodically published lists of revoked certificates, while OCSP enables relying parties to request information about the revocation status of individual certificates.

The increasing adoption of short-lived certificates reduces the period during which a compromised certificate may remain valid. However, shorter validity periods do not automatically eliminate the need for revocation mechanisms.

Whether revocation checking is required depends on the certificate type, trust ecosystem, applicable standards and security requirements.

A well-designed PKI should combine appropriate certificate validity periods, automated certificate lifecycle management, monitoring and revocation capabilities where necessary.

Certificate Revocation List
A Certificate Revocation List (CRL) is a list of digital certificates that have been revoked by the issuing Certificate Authority (CA) before their scheduled expiration date and should no longer be trusted. CRLs are a type of blacklist and are used by various endpoints, including Web browsers, to verify whether a certificate is valid and trustworthy.

When a Web browser makes a connection to a site using TLS, the Web server's digital certificate is checked for anomalies or problems; part of this process involves checking that the certificate is not listed in a Certificate Revocation List. These checks are crucial steps in any certificate-based transaction because they allow a user to verify the identity of the owner of the site and discover whether the Certificate Authority still considers the digital certificate trustworthy. There exists a IETF standard for CRLs RFC5280

Online Certificate Status Protocol
The Online Certificate Status Protocol (OCSP), defined in RFC6960, enables applications to obtain information about the revocation status of X.509 certificates without downloading a complete Certificate Revocation List. .

An OCSP responder returns one of three certificate-status values: good, revoked or unknown. A good response indicates that the certificate is not known to be revoked, but does not independently establish that the certificate is valid, trusted or within its validity period.

OCSP responses are digitally signed and contain timestamps that allow clients to assess their freshness. OCSP does not extend certificate validity or provide a grace period for expired certificates.

Post-Quantum Cryptography (PQC)

Public Key Infrastructure traditionally relies on asymmetric cryptographic algorithms such as RSA and Elliptic Curve Cryptography (ECC) to establish digital trust. However, advances in quantum computing introduce a significant long-term challenge to these algorithms.

A sufficiently powerful quantum computer could break the mathematical problems underlying RSA and ECC, potentially compromising digital signatures, certificate authentication and key establishment mechanisms used in today's PKI environments.

To address this challenge, the National Institute of Standards and Technology (NIST) has standardised new cryptographic algorithms designed to resist attacks from both classical and quantum computers.

The first three finalised standards, published in 2024, include:

  • ML-KEM (FIPS 203): A key encapsulation mechanism designed for secure key establishment.
  • ML-DSA (FIPS 204): A digital signature algorithm suitable for applications including digital certificates and code signing.
  • SLH-DSA (FIPS 205): A hash-based digital signature algorithm providing an alternative mathematical foundation to ML-DSA.

For PKI environments, the transition to post-quantum cryptography involves more than replacing cryptographic algorithms. It may require changes to certificate formats and profiles, Certification Authority infrastructure, Hardware Security Modules (HSMs), certificate lifecycle management solutions, applications and trust stores.

Organisations must also consider interoperability, larger key and signature sizes, and the potential use of hybrid approaches combining classical and post-quantum cryptography during the transition.

A successful migration therefore requires crypto-agility: the ability to identify, assess and replace cryptographic algorithms without disrupting critical business services.

Although cryptographically relevant quantum computers are not yet publicly known to exist, organisations should begin assessing their cryptographic dependencies and planning their transition to quantum-resistant technologies.

The Bottom Line on PKI

It is difficult to draw a single conclusion about PKI because it can be implemented in many different ways and for a wide range of purposes.

Implementing an organisation-wide PKI supporting multiple applications, systems and business processes can be a significant undertaking, requiring careful architectural planning, governance and operational management.

Conversely, deploying a dedicated PKI to secure communications between a limited number of systems may be relatively straightforward.

One of the fundamental architectural decisions is whether to operate an internal Certification Authority, rely on an external CA, or adopt a hybrid approach.

Before implementing a PKI, organisations should clearly identify the business and security requirements they intend to address.

Although digital signatures can technically be generated and verified without a PKI, a Public Key Infrastructure provides a standardised and scalable framework for associating public keys with verified identities and establishing trust between parties.

As organisations increasingly rely on digital identities, machine-to-machine communications, automated processes and digital signatures, PKI has become a critical component of modern cybersecurity architectures.

However, the value of a PKI depends not only on its technical implementation but also on effective certificate lifecycle management, cryptographic key protection, governance and operational controls.

With the emergence of Post-Quantum Cryptography, PKI is entering a new phase of technological evolution. Organisations must ensure that their PKI architectures, cryptographic policies and certificate management processes can accommodate new algorithms and evolving security requirements. Preparing for this transition is becoming an essential part of long-term digital trust strategies.

A properly designed and managed PKI enables organisations to establish digital trust, secure communications and manage cryptographic identities consistently across their infrastructure.

At Link2Trust, we support organisations throughout the lifecycle of their cryptographic infrastructure, from PKI architecture and implementation to Certificate Lifecycle Management (CLM), Hardware Security Modules (HSMs), cryptographic governance and Post-Quantum Cryptography readiness.

Whether modernising an existing PKI or preparing for the transition to quantum-resistant cryptography, we help organisations build secure, scalable and future-ready trust infrastructures.
Get expert guidance on evaluating and improving your organization's cryptographic practices.