Understanding Public Key Infrastructure
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.
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
Algorithms and Keys
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.
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.
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.
PKI Functions
Issuing certificates
Revoking certificates
Timestamping
Key lifecycle management
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
PKI Related Standards
- Enrollment procedures;
- Certificate formats;
- CRL formats;
- Formats for certificate enrollment messages (client requests certificate, server issues certificate);
- Digital signature formats.
X.509
Public-Key Cryptography Standards (PKCS)
Standards That Rely on 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
Hashing and Salting
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
Digital Certificates
Types of Digital Certificates
Domain Validated Certificates (DV)
Organization Validated Certificates (OV)
Extended Validation Certificate (EV)
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
Certificate Authority (CA)
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.
Certificate Revocation List
Online Certificate Status Protocol
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
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.