Key Takeaways
- PKI enables certificate-based authentication mechanisms that can replace passwords in specific implementations such as EAP-TLS or mutual TLS.
- Implementing PKI authentication is crucial for a modern security framework, but it's a complex, time-consuming task if done in-house.
- Fully managed cloud PKI solutions are scalable and secure and greatly reduce the complexity of traditional PKIs.
Public key infrastructure (PKI) is critical for modern network security. PKI enables passwordless authentication and encrypted communication. Organizations such as CISA and NSA recommend PKI-based certificates in their joint hardening guidance.
PKI certificates are complicated, and even very senior security admins may find them difficult to understand.
“Cloud PKI services exist because PKI is just really hard to do in a safe, secure way. There are hundreds of pages of documentation showing how you might set up a legacy PKI like Active Directory Certificate Services in an insecure way just by using the default settings. There are tons of vulnerabilities that can happen if you don’t set it up right.”
Micah Spady, Director of Product Marketing at SecureW2
What Is PKI?
Public key infrastructure (PKI) is the set of processes and technologies that manage digital certificates and public-key encryption. A digital certificate, or PKI certificate, enables secure digital communication by acting as a digital passport to bind a public key to an entity such as a device, person, or server.
Info: At a very high level, the purpose of PKI is to allow organizations to use encryption for their various security needs.
It provides phishing-resistant authentication for applications or Wi-Fi and enables your web servers to communicate in encrypted tunnels, as shown in the graphic below.
PKI and digital certificates are fundamental and technologically advanced components of cybersecurity. We’ll break down how they work in the following sections.
You can also learn about managed PKI in this video.
How PKI Interacts With Digital Certificates
A PKI certificate is entirely dependent on the underlying PKI to give it authority. Without the system behind it to issue, validate, and track it, a digital credential cannot be trusted by a network.
This interaction forms the core of PKI security. The architecture securely binds a specific network identity to a cryptographic PKI key pair. When an enterprise user authenticates against an Identity Provider like Okta or Azure, the system evaluates the certificate to verify that both the user and the device are authorized.
To run this process smoothly at scale, modern PKI solutions, often delivered as PKI-as-a-Service (PKIaaS), leverage automated PKI software to manage the operational workload across three areas:
- PKI Encryption: The architecture leverages the relationship between a public and private PKI key to protect data transit lanes.
- PKI Management: Automated PKI certificate management monitors active lifecycles to swap out expiring credentials before they trigger a system outage.
- Unified Governance: This robust PKI cybersecurity model gives infrastructure teams full control over trust chains and revocation lists.
The video below explains how PKI works at a high level:
What Are the Components of Public Key Infrastructure?
PKI infrastructure is made up of several components that work together to manage the entire certificate lifecycle. While the field continues to evolve, these are the core components every modern PKI needs:
- Certificate Authority (CA)
- Certificate Templates
- Certificate Lifecycle Management
- Hardware Security Module (HSM)
Here is what each component does and why it matters, beginning with a graphic illustration of how a certificate chain is structured.
Certificate Authority (CA)
A PKI Certificate Authority (CA) is the backbone of PKI management. It is the trusted entity responsible for issuing and signing digital certificates that bind a public key to a verified identity.
Here is how the CA process works:
- The client generates a public-private key pair.
- The public key and identity information are sent to the CA.
- The CA validates the request and creates a signed digital certificate.
- That certificate is then used to authenticate the user or device during access attempts.
Every certificate can be traced back through a chain of trust to a single root CA, which is the ultimate source of trust in any PKI infrastructure.
Root Certificate Authority
The root CA sits at the top of the PKI trust chain and is the most sensitive component in the entire infrastructure.
- It signs and authorizes intermediate CAs, which then issue certificates to end users and devices.
- It never issues certificates directly to end users.
- If the root CA is compromised, every certificate in the PKI is at risk.
- For this reason, root CAs are kept offline and isolated from the public internet.
Intermediate Certificate Authority
The intermediate CA acts as a layer between the root CA and the end user certificates.
- It inherits trust from the root CA, so any certificate it issues is treated as trusted.
- Keeping the root CA offline is possible because the intermediate CA handles day-to-day certificate issuance.
- The best practice is to always issue PKI certificates from an intermediate CA, never directly from the root CA.
Certificate Templates
Certificate templates are used to determine how a certificate is structured and what it will be used for.
For public key infrastructures such as Active Directory Certificate Services (AD CS), certificate templates are enormously important and dictate many of the permissions required for receiving a certificate and what it will be used for. Exploiting a misconfigured certificate template in AD CS is one of the most common compromises.
Below is an example of a Default Certificate Template in the SecureW2 PKI. You can see attributes such as Validity Period, Signature Algorithm, Extended Key Usage (EKU, or what the certificate will be used for), and much more.
Certificate Lifecycle Management
Certificate lifecycle management covers the processes used to manage certificates from enrollment to expiration or revocation. The key stages are:
- Enrollment: A user, device, or application requests a certificate from a Certificate Authority (CA).
- Issuance: The CA verifies the requester’s identity and issues the certificate if it meets the required policies.
- Validation: During authentication, the certificate is checked for a valid trust chain, expiration, and revocation status using mechanisms such as CRL or OCSP.
- Renewal: Certificates are renewed before expiration to maintain continuous authentication. Renewal may involve identity verification and generating a new key pair.
- Revocation: A certificate is revoked before expiration if its private key is compromised, the identity is no longer trusted, or other security risks arise.
For a detailed overview, see SecureW2’s certificate lifecycle management guide.
Hardware Security Module
A Hardware Security Module is an optional PKI component that significantly strengthens PKI security by protecting and managing cryptographic keys throughout their entire lifecycle, from creation and rotation to deletion and auditing.
Do You Need a Two-Tier or Three-Tier PKI?
A two-tier PKI uses a root CA and one intermediate CA. A three-tier PKI adds a second layer of intermediate CAs beneath the first, usually split by department, region, or certificate type.
Most small and mid-sized organizations only need two tiers. A three-tier setup makes sense when you need to isolate issuance across business units, or when a single compromised Intermediate CA should not put every certificate in the organization at risk.
The other trade-off is whether the issuing CA stays online.
An issuing CA has to remain online to sign certificates on demand, which makes it the most exposed part of the hierarchy. The root CA should never be online, regardless of how many tiers you run. Keeping it offline and airgapped, and only bringing it online for scheduled signing events, is what limits the blast radius if an issuing CA is ever compromised.
As a best practice, always issue certificates from an intermediate CA.
How Does Public Key Infrastructure Work?
At its core, PKI turns random mathematical keys into trusted digital identities. It works like a digital passport system for your network. A central authority checks a user's identity, confirms it is real, and issues a digital certificate. This certificate proves to the rest of the network that the user or device can be trusted.
To understand how this infrastructure scales securely without performance lag, we must look at how the underlying encryption styles work together:
1. Asymmetric Cryptography (Proving Identity)
This layer uses two different keys that work together as a pair:
- The Public Key: Shared openly with everyone.
- The Private Key: Kept strictly secret on the device.
When a device wants to log in, it uses its secret private key to sign a request. The server uses the open public key to verify that signature. Because the private key never leaves the device, hackers cannot steal it in transit like a traditional password.
Example of Asymmetric Encryption
The classic way of explaining asymmetric encryption is the Alice and Bob diagram, below:
The PKI system achieves strong asymmetric encryption using clever mathematics. With RSA, for example, the process involves multiplying two huge prime numbers (each about 1,024 bits long for a 2,048-bit key) and relying on how hard it is to factor that product back into the original primes, though the full explanation is much more complicated.
These two videos help explain the math behind PKI in more detail:
- Public Key Cryptography ← how public key infrastructure works at a high level
- Diffie-Hellman – The Mathematics ← the math behind asymmetric encryption
2. Symmetric Cryptography (Moving Data Fast)
Asymmetric encryption is great for proving identity, but it takes too much computing power to encrypt large amounts of live network traffic.
Symmetric encryption fixes this. It uses a single shared key to scramble and unscramble data at lightning-fast speeds.
3. The Hybrid Handshake (The Solution)
PKI combines both types of encryption during each connection:
- Step 1: The device and server use the secure asymmetric keys to verify each other's identity.
- Step 2: During that conversation, they use a key exchange such as ECDHE to derive a shared, temporary symmetric session key.
- Step 3: The asymmetric keys step aside, and the fast symmetric key encrypts the rest of the active session.
The 4-Step Process in Action
The actual day-to-day operation of PKI follows a straightforward lifecycle, as mapped out in the table:
|
Stage |
What Happens |
|---|---|
|
1. Request |
The device creates a key pair. It keeps the private key hidden and sends the public key to the Certificate Authority (CA) in a request file. |
|
2. Verify |
The CA checks the device's details against company policies. If everything looks legitimate, the CA signs a digital certificate. |
|
3. Install |
The signed certificate is sent back and loaded onto the device, acting as an official digital ID. |
|
4. Authenticate |
When the device connects to the network, it shows the certificate. The server verifies the CA's signature and grants access instantly. |
Experience instant security with average certificate revocation in 3 seconds
What Is PKI Used For?
PKI is important for cybersecurity because it binds identities to public keys through certificates issued by a trusted certificate authority. This gives every user and device a verified source of truth on the network. When paired with systems like 802.1X, VPN gateways, or mutual TLS, PKI confirms identity before granting any access.
Validates Trustworthiness of Users and Devices
Each user or device gets a PKI certificate from a trusted CA that confirms its identity. To connect, it proves possession of the private key without ever exposing it, which makes impersonation and stolen credentials far harder to use. Many enterprises pair this with PKI smart card authentication for high-assurance, hardware-bound login, including hardware tokens like YubiKeys.
This process makes it much harder for attackers to impersonate someone or use stolen credentials.
Leverages EAP-TLS in a WPA2-Enterprise Network
Digital certificates power mutual EAP-TLS authentication on WPA2-Enterprise networks. This gives the EAP-TLS protocol a framework for faster, more secure mutual authentication between clients and servers.
Protects Remote Cloud Environments
Certificate-based 802.1X authentication lets users and devices connect to a remote server without the risk of stolen or leaked passwords. A certificate management system tied to a PKI automates the certificate lifecycle for managed, BYOD, and guest devices, so only authorized personnel can access specific data and applications.
The following table explains the differences between a password-based network and a PKI-based network.
|
Features |
Password-Based Network |
PKI-Based Network |
|---|---|---|
|
Security Risk |
Shared keys carry a high risk of phishing, brute-force, and man-in-the-middle attacks. |
No pre-shared keys lower risk. |
|
Authentication Factor |
Weaker trust since passwords can be stolen or duplicated. |
Stronger continuous device trust with certificate-based authentication. |
|
User Experience |
Clunky, with frequent resets and reset-based disconnects. |
Certificates work until revoked or expired. |
|
Context-Based Trust |
Limited, static device trust. |
Identity and access-based granular trust model. |
The security plan that scales with you.
Our solutions can scale from mid-market to global enterprises. Compare options and see how our solutions protect you from costly breaches and ensure peace of mind.
Wi-Fi Authentication
PKI enables secure, certificate-based Wi-Fi authentication using EAP-TLS, which verifies both the client device and the RADIUS server. This replaces weaker password-based methods with asymmetric cryptography and a trusted CA. For setup steps, see our guide to configuring PKI for Wi-Fi.
Wired Security PKI
This secures wired connections through 802.1X port-based authentication, where a switch blocks access until the device presents a valid certificate. It prevents unauthorized devices from joining the LAN and blocks rogue network access.
Web Application Authentication
A user connecting to a web application has their identity confirmed by the application server, much like Wi-Fi authentication. Since the certificate is signed by a trusted CA, the user gains access.
VPN Authentication
Certificates are preferred over passwords for VPN access since VPNs reach critical information. The root or intermediate CA is usually stored on the firewall, and once authenticated, a secure tunnel opens to the network.
Email Security
Email encryption uses the S/MIME protocol, which requires both sender and receiver to hold a CA-signed certificate. This proves the message origin and encrypts the content so only the recipient’s private key can decrypt it.
Mutual TLS (mTLS) for Service-to-Service Communication
Mutual TLS uses PKI certificates to verify both sides of a connection, not just the server. This makes it a common choice for service-to-service communication in microservices, Kubernetes clusters, and AI agent workflows, where each service or workload needs to prove its identity before another will talk to it. Because both parties authenticate with certificates instead of shared secrets, mTLS removes the need for API keys or tokens that can be leaked or reused.
See PKI in action: Read our case study describing how a community bank deployed PKI across five branches with SecureW2.
Improve End-User Experience
Passwords require repeated input and frequent resets, and adding MFA on top often frustrates users.
Digital certificates with a PKI are becoming the preferred choice as more organizations move to passwordless authentication, a shift reflected in NIST's specific guidelines on digital identity and phishing-resistant authentication.
Info: The National Institute of Standards and Technology (NIST) prescribes specific frameworks to secure critical data in an enterprise network and the organization strongly recommends using digital certificates with a PKI for Wi-Fi and VPN authentication.
Prevent Breaches Due to Stolen Credentials
A device must prove possession of its private key to connect, and that key can't be phished or reused like a password. Even if an attacker intercepts network traffic, they can't authenticate without the key itself.
Reduce Password-Related Support Tickets
Since certificates replace passwords, users no longer need to remember, reset, or change credentials. Automated issuance and renewal also cut down manual work and support costs.
Increase Visibility Over Network Access
Unlike passwords, certificates are device-bound and traceable. Detailed RADIUS logs show exactly who and what connected or accessed the network at authentication time.
What Is the Difference Between PKI and SSL/TLS?
PKI is the broader framework that manages digital trust, while SSL/TLS (Secure Sockets Layer/Transport Layer Security) is a protocol that uses certificates to secure network communication.
The following table explains the key differences between PKI and SSL/TLS.
|
PKI |
SSL/TLS |
|---|---|
|
Manages digital certificates and keys |
Secures network communication |
|
Issues, manages, renews, and revokes certificates |
Uses certificates for authentication and encryption |
|
Provides the foundation for digital trust |
Uses that trust to establish secure connections |
|
Supports user, device, code, and data security |
Commonly used for HTTPS and secure APIs |
The Challenges of Managing PKI at Scale
There are a number of challenges for teams managing PKI at scale, as the following table explains.
|
Challenge |
Explanation |
Solution |
|---|---|---|
|
Certificate sprawl |
As more users and devices join the network, the number of PKI certificates in circulation grows fast. Without a central system, teams lose track of which certificates exist, who owns them, and when each one expires. |
Use a centralized PKI management platform that tracks every certificate, owner, and expiration date in one place. |
|
Manual lifecycle management |
Handling enrollment, issuance, renewal, and revocation by hand does not scale. A missed renewal can lock users out or break authentication without warning. |
Automate enrollment, issuance, renewal, and revocation so certificates never lapse without warning. |
|
Weak key storage |
Every PKI key needs to be generated, stored, and protected correctly. Without dedicated infrastructure, private keys can end up exposed, which defeats the purpose of using PKI encryption in the first place. |
Store and manage private keys with a hardware security module to keep them isolated from exposure. |
|
Limited visibility |
Most enterprises run a mix of on-prem, cloud, and hybrid systems. Keeping consistent visibility into certificate status across all of them is difficult, and gaps in visibility make it hard to catch expired or rogue certificates. |
Deploy a PKI solution with centralized dashboards that show certificate status across on-prem, cloud, and hybrid systems. |
|
Slow revocation |
Revoking a compromised or outdated certificate needs to happen fast. If a CRL or its AIA hosting path goes down or expires, devices can fail to validate any certificate at all, which can break authentication across the entire network at once, not just for the revoked certificate. |
Use real-time OCSP checks instead of relying only on CRL updates, so revoked certificates are rejected near-instantly. |
Why Post-Quantum Cryptography Matters for PKI
Public key infrastructure relies entirely on mathematical algorithms like RSA and ECC to secure connections and authenticate entities. However, future quantum computers will easily solve these math problems, rendering today’s standard digital certificates ineffective.
Post-Quantum Cryptography (PQC) matters for PKI because certificates protect long-term infrastructure, trusted identities, and historical data. Upgrading a PKI isn't an overnight task; it requires inventorying legacy certificates, upgrading protocols, and adopting quantum-resistant algorithms.
Preparing for PQC ensures your PKI retains data confidentiality and device trust as cryptographic standards evolve, preventing massive network disruption before traditional algorithms become obsolete.
PKI Implementation Best Practices for Your Network
Using PKI is a strong step toward a secure network, but a PKI only works if it is implemented the right way. A vetted strategy and a forward-looking rollout plan turn PKI into real identity and context-based device trust across your network.
Note: A PKI alone won’t address security needs unless properly implemented.
- Keep the root CA separate with an intermediate CA: Set up an intermediate CA under the root, then split issuance by department or location, so the root CA stays offline and well protected.
- Automate certificate lifecycle management: A managed PKI automates enrollment, issuance, renewal, and revocation from one platform, so nothing gets missed.
- Run regular audits and compliance checks: Keep an audit trail of every certificate issued, renewed, or revoked, and set up automated alerts so security teams catch unusual activity fast.
- Integrate PKI with IAM, IdP, and MDM tools: Connecting PKI to your identity provider and MDM lets you use EAP-TLS to tie certificate-based authentication directly to user and device identity.
- Protect private keys with an HSM: Root and intermediate keys should never leave the hardware security module, and access to them should be tightly limited and logged.
- Automate onboarding for managed and BYOD devices: Onboarding software issues certificates automatically using protocols like SCEP and ACME, letting BYOD and guest devices self-enroll safely.
- Automate short-lived certificates for CI/CD and Kubernetes: Protocols like ACME, EST, and SCEP can issue and rotate short-lived certificates automatically for workloads in CI/CD pipelines and Kubernetes clusters, so ephemeral infrastructure gets authenticated without manual certificate handling.
- Plan for shorter certificate lifespans: Major browsers and CAs are moving toward much shorter TLS validity periods, so building automation now keeps your PKI ready ahead of time.
- Build in crypto agility: Post-quantum algorithms are already being standardized and piloted, so choose a PKI that can swap algorithms and key types without a full rebuild.
Automate Your PKI Without the Overhead of On-Premises Infrastructure
Running your own PKI means managing certificate lifecycle, intermediate CAs, revocation infrastructure, and renewal workflows, often with tools that weren’t built for the speed modern environments demand.
The SecureW2 JoinNow Dynamic PKI continuously evaluates device posture using real-time API integrations during certificate issuance, renewal, authentication, and whenever security signals change. That ensures certificate trust reflects the device’s current security state, not a point-in-time assessment made months earlier.
Eliminate the need for an on-premises CA, revoke certificates in seconds, and deploy a full-stack platform designed to scale across diverse device ecosystems, not just a single MDM vendor.
Our PKI handles the infrastructure so you can focus on strategy. Reach out to us for a free demo of Dynamic PKI today.
Frequently Asked Questions
Is a digital certificate the same as a private key or public key?
No, a digital certificate is not the same as a private or public key, though it does contain your public key. Think of it like a digital passport or driver's license that proves identity. A PKI certificate can hold a customizable set of attributes, including email address, first and last name, Identity Provider group membership, device serial number, and Azure Device ID.
What are the core cryptographic algorithms behind PKI?
PKI relies on asymmetric algorithms like RSA, ECC, DSA, and Diffie-Hellman for secure key exchange, digital signatures, and certificate signing, paired with symmetric algorithms like AES-256 for fast encryption once trust is established. Modern PKI increasingly favors ECC and ECDSA for efficiency, while RSA, DSA, and Diffie-Hellman remain widely used or historically important.
What is a TLS cipher suite?
A TLS cipher suite is the set of algorithms used for key exchange, authentication, encryption, and message authentication during a TLS session. In TLS 1.2, a cipher suite names the key exchange, authentication, encryption, and message authentication algorithms; in TLS 1.3, it names only the AEAD encryption algorithm and the hash, and key exchange and authentication are negotiated separately.
TLS replaced the older SSL protocol as the standard. Support varies by vendor. The SecureW2 wrapper supports modern TLS versions, dropping legacy versions like TLS 1.0 and TLS 1.1, which have known vulnerabilities, when onboarding a device.
What is Microsoft PKI?
Microsoft PKI refers to Active Directory Certificate Services (AD CS), built to work with Active Directory, Network Policy Server, and Group Policy Objects. Many organizations are moving away from AD CS because it demands heavy on-premises infrastructure and manual upkeep, which makes it a poor fit for organizations shifting to an all-cloud environment. See our full guide to Windows PKI servers for a deeper breakdown.
How do I migrate away from legacy Microsoft AD CS?
Migrating from AD CS starts with inventorying every certificate template, issuing CA, and dependent application currently tied to it, since these are easy to miss and cause outages if skipped. From there, most organizations stand up a cloud-based managed PKI alongside AD CS, move certificate issuance over gradually by device group or use case, and decommission AD CS only once every dependency has been cut over. Running both in parallel during the transition avoids a hard cutover that breaks authentication.
If you manage Apple devices, our guide on how to set up AD CS PKI certificates with Jamf walks through that specific cutover.
Does EAP-TLS use a PKI?
Yes, EAP-TLS uses PKI. It is an EAP authentication method, widely used on WPA2- and WPA3-Enterprise networks. The client and the RADIUS server each prove their identity with a certificate. This prevents credentials or other data from being intercepted over the air, resulting in fast and secure authentication.
Why are certificates essential for securing AI agents and non-human identities?
Certificates are essential because they give AI agents, services, and workloads a hardware-bound, cryptographically verifiable identity that is far stronger than an API key or token. They support mutual authentication, short-lived identities, and automated lifecycle management, which static credentials cannot offer. This makes certificates the standard for securing machine-to-machine communication in autonomous, AI-driven systems.
How does certificate-based authentication work in AI systems using SPIRE?
In SPIRE-based systems, a SPIRE Agent on each node first proves the node's identity to the SPIRE Server through node attestation; workloads then request identities from that agent through the SPIFFE Workload API, and the agent attests each workload and obtains short-lived certificates for it, valid for minutes or hours. These ephemeral certificates authenticate agents and services continuously, so only authorized workloads communicate and any compromised identity has a limited window of exposure.
What is PKI for dummies?
PKI, or public key infrastructure, is a system that uses certificates and paired keys to prove who a user, device, or server really is. One key stays private and secret, while the other is public and shared inside a certificate signed by a trusted authority. Instead of passwords that can be stolen or guessed, PKI proves identity through possession of a private key, which makes it much harder for attackers to impersonate a user or device.
How can I get a PKI certificate?
To get a PKI certificate, you request one from a certificate authority (CA), either your organization's internal CA or a managed PKI provider. The CA verifies your identity, then issues a certificate containing your public key and identifying details. Most organizations automate this through a managed PKI platform, which handles enrollment, issuance, and renewal so users and devices get certificates without manual setup.
Is RSA 2048 still acceptable, or should we enforce RSA 4096 or ECC?
RSA 2048 is still considered acceptable for most internal end-entity certificates today, but it is no longer the forward-looking choice. Many organizations are moving to ECC because it delivers equivalent or stronger security with smaller key sizes and faster performance. RSA 4096 is a safe middle ground where ECC is not supported, but new deployments should default to ECC where possible to stay ahead of both performance needs and future cryptographic requirements.
When are cloud-based HSMs acceptable, and when do I need dedicated hardware?
Cloud-based Hardware Security Modules (HSMs) are acceptable for most organizations that need strong key protection without managing physical infrastructure, and they work well for issuing CAs and day-to-day certificate operations. Dedicated, on-premises HSMs are usually reserved for protecting the Root CA, where the highest level of isolation and control matters most. The right choice comes down to how sensitive the key is and whether compliance requirements demand hardware you fully own and control.
How do we audit our PKI for crypto agility and migrate to quantum-resistant algorithms?
Start by inventorying every algorithm and key size currently in use across your CAs, certificate templates, and endpoints, since you cannot migrate what you have not mapped. Next, confirm your CA software and HSMs support swapping algorithms without a full rebuild, which is what crypto agility actually means in practice. Then pilot post-quantum or hybrid certificates on a small, low-risk certificate template before rolling out more broadly, so you catch compatibility issues early.



