PKI explained
PKI interview questions and answers
The short answer
These PKI interview questions cover what employers ask for security, PKI, platform and IT operations roles: fundamentals, certificates and chains, TLS, operations, enterprise PKI and AD CS, and post-quantum cryptography. Each question has a short, accurate model answer and a link to the handbook chapter that explains it in depth.
- Level
- Practitioner
- Reading time
- About 18 minutes
On this page
- What do interviewers look for in PKI answers?
- PKI fundamentals interview questions
- Certificate and chain interview questions
- TLS interview questions
- PKI operations interview questions
- Enterprise PKI and AD CS interview questions
- Advanced and post-quantum interview questions
- Where to go next
- Frequently asked questions
- Keep going
Use these 39 questions to prepare for an interview for a security, PKI, platform, DevOps or IT operations role, or to test yourself. They run from the PKI basics that every candidate should know to the enterprise and post-quantum questions asked of PKI engineers and architects. Each answer is a short model answer, two to four sentences, followed by a link to the chapter that explains it properly. Learn the reasoning, not the wording: interviewers ask follow-up questions.
What do interviewers look for in PKI answers?
Most interviewers listen for precise language, because PKI is full of half-truths that sound right. These six separate a strong answer from a weak one:
- A signature is not “encryption with the private key”. It is a separate operation that proves who signed and that nothing changed.
- Certificates do not encrypt anything. They bind a public key to a name. In TLS 1.3 the session keys come from an ephemeral ECDHE exchange.
- A root is trusted because it is in the trust store, not because it is self-signed.
- Modern clients match hostnames against the Subject Alternative Name, not the Common Name.
- A wildcard covers exactly one label, and never the bare domain.
- Browser revocation checking is largely soft-fail, which is one reason lifetimes are shrinking.
Strong candidates also reason from what a client actually checks, know a few real commands such as openssl s_client and openssl x509 -text, and can tell a short story about a certificate problem they solved.
PKI fundamentals interview questions
1. What is PKI?
Public key infrastructure is the set of roles, policies, software and hardware that binds public keys to identities through certificates signed by certificate authorities. It lets a client that has never met a server check that the server’s public key really belongs to the name it claims, by following a chain of signatures to a root the client already trusts.
Go deeper: What is PKI? and how does PKI work?
2. What is the difference between symmetric and asymmetric cryptography?
Symmetric cryptography, such as AES, uses one shared secret key; it is fast, but both sides must already share that key safely. Asymmetric cryptography uses a key pair: a public key anyone may hold and a private key only the owner has. In practice they work together: asymmetric methods authenticate and agree keys, and a symmetric cipher protects the bulk of the data.
Go deeper: symmetric encryption and key pairs
3. What problem does PKI solve that public-key cryptography alone does not?
A signature tells you that whoever holds a certain private key signed the data, but not who that is. An attacker who swaps in their own public key can impersonate anyone. PKI solves this binding problem: a CA that the verifier already trusts signs a certificate stating which name goes with which public key.
Go deeper: binding identity to keys
4. What is a digital signature, and how is it different from encryption?
The signer computes a hash of the message and applies a signature algorithm, such as ECDSA or RSA-PSS, with their private key. Anyone with the public key can verify that the signature matches the message, which proves who signed and that the data did not change. A signature keeps nothing secret, and it is not encryption with the private key, even though textbook RSA makes the two look alike.
Go deeper: digital signatures and hashes
5. What are the main components of a PKI?
A certificate authority signs certificates, and a registration authority checks requesters before the CA signs. Repositories publish certificates and revocation information, revocation services provide CRLs and sometimes OCSP, and relying parties hold trust stores of roots. Around them sit the policies (CP and CPS), key protection such as HSMs, and the people and processes that run it all.
Go deeper: PKI components and what is a certificate authority?
6. What is a trust store, and why is a root certificate trusted?
A trust store is the set of root certificates, or trust anchors, that a client accepts without further proof: the operating system’s store, a browser’s root store, Java’s cacerts or Python’s certifi bundle. A root is trusted only because it is in that store, placed there by a root program or an administrator. Being self-signed earns nothing; the self-signature only shows that the file is intact.
Go deeper: trust stores
Certificate and chain interview questions
7. What is inside an X.509 certificate?
The subject’s public key and names (the Subject and the Subject Alternative Name), the issuer’s name, a serial number and a validity period (notBefore and notAfter). Version 3 certificates add extensions such as Key Usage, Extended Key Usage, Basic Constraints, and pointers to the issuer’s certificate and revocation information. The issuer’s signature covers all of it, as defined in RFC 5280.
Go deeper: anatomy of an X.509 certificate, or paste one into the certificate decoder
8. What is a CSR, and what does it prove?
A certificate signing request (PKCS #10) carries the public key and the requested names, and is signed with the matching private key. That signature proves possession of the private key, which never leaves the requester. It does not prove that the requester controls the names: the CA validates those separately.
Go deeper: the CSR
9. What is the difference between root, intermediate and leaf certificates?
A root is a self-signed CA certificate that lives in trust stores. Intermediates are CA certificates signed by the root or by another intermediate; they do the daily issuing so that the root key can stay offline. A leaf, or end-entity, certificate belongs to a server, user or device; it is not a CA (no CA:TRUE in its Basic Constraints), so clients reject any certificate it tries to sign.
Go deeper: certificate chains
10. How does a client validate a certificate chain?
It builds a path from the leaf to a trust anchor, matching each certificate’s issuer to the next certificate’s subject and key identifiers. Along the path it checks every signature and validity period, Basic Constraints and path length, Key Usage and Extended Key Usage, any name constraints and, where configured, revocation status (RFC 5280 section 6). Separately, it checks that the name it connected to appears in the leaf’s Subject Alternative Name.
Go deeper: certificate chains and path validation
11. What happens if a server does not send its intermediate certificate?
Browsers often still connect, because they cache intermediates or fetch them from the address in the certificate, so the bug hides. OpenSSL, Python, Java, Node.js and curl on Linux usually fail with an error such as “unable to get local issuer certificate”. The fix is on the server: send the leaf followed by its intermediates, the full chain.
Go deeper: the error page and how to build the full chain
12. What is a Subject Alternative Name, and why is the Common Name not enough?
The Subject Alternative Name (SAN) extension lists every DNS name and IP address the certificate is valid for. Browsers match the hostname only against the SAN and ignore the Common Name; Google’s browser has done so since Chrome 58 (April 2017), and Apple’s platforms since iOS 13 and macOS 10.15. Some libraries still fall back to the CN, but only when the certificate lists no DNS name at all. A certificate whose name appears only in the CN fails in browsers, for example with NET::ERR_CERT_COMMON_NAME_INVALID.
Go deeper: names and key usage
13. What does a wildcard certificate cover?
A wildcard such as *.example.com matches exactly one label in that position: www.example.com and api.example.com, but not example.com itself and not a.b.example.com. If you need the bare domain, add it as a separate SAN. Wildcards also spread one private key across many servers, so use them with care.
Go deeper: names and key usage, or try names in the hostname matcher
14. What do Key Usage, Extended Key Usage and Basic Constraints do?
Key Usage limits what the key may do cryptographically, such as digitalSignature, keyCertSign or cRLSign. Extended Key Usage limits the application purpose, such as serverAuth, clientAuth or codeSigning. Basic Constraints says whether the certificate belongs to a CA, and its path length limit says how many CA levels may follow below it.
Go deeper: names and key usage
15. What is the difference between PEM, DER, PKCS #12 and JKS?
DER is the binary ASN.1 encoding of a certificate or key, and PEM is the same bytes in Base64 between BEGIN and END lines. PKCS #12 (.pfx or .p12) is a password-protected container that holds a private key together with its certificate chain. JKS is Java’s older keystore format: PKCS #12 became Java's default keystore type in JDK 9 (JEP 229).
Go deeper: file formats and converting PFX to PEM
16. What do DV, OV and EV certificates check?
Domain Validation proves only that the requester controls each name, for example through an HTTP file, a DNS record or a TLS response. Organization Validation and Extended Validation also verify the organisation’s legal identity, EV under stricter guidelines. The connection is equally secure with all three, and Chrome and Firefox moved the EV company name out of the address bar (2019, in Chrome 77 and Firefox 70).
Go deeper: proving you own the name
TLS interview questions
17. Walk me through the TLS 1.3 handshake.
The client sends a ClientHello with its supported cipher suites and a key share, an ephemeral public key for ECDHE, often X25519 or a hybrid post-quantum group. The server replies with a ServerHello and its own key share; both sides derive handshake keys, so everything after this point is encrypted. The server sends its certificate chain, a CertificateVerify signature over the handshake so far, and Finished. The client checks the chain, the name and the signature, sends its own Finished, and application data flows after one round trip.
Go deeper: the TLS 1.3 handshake and PKI vs TLS
18. What does the server’s certificate key do in TLS 1.3?
It only authenticates. The server signs the handshake transcript with its private key in the CertificateVerify message, which proves it holds the key that the certificate names. The session keys come from the ephemeral ECDHE exchange, so the certificate key never encrypts traffic and never transports keys, unlike RSA key exchange in TLS 1.2 and earlier.
Go deeper: the TLS 1.3 handshake
19. What is forward secrecy?
Forward secrecy means that stealing a server’s long-term private key later does not let an attacker decrypt traffic recorded earlier. TLS 1.3 gets it by creating fresh ephemeral key pairs for every handshake and discarding them afterwards. Session resumption with a pre-shared key and no new key exchange gives it up for that data, which is why most clients add a fresh key share.
Go deeper: key exchange and the TLS 1.3 handshake
20. What is SNI, and why does it matter for certificates?
Server Name Indication is a ClientHello extension in which the client names the site it wants, so a server that hosts many sites can choose the right certificate. Without it, the server sends a default certificate, and the client reports a name mismatch unless that certificate happens to cover the name; some servers refuse the handshake instead. SNI travels in plain text unless Encrypted Client Hello is used, standardised in RFC 9849.
Go deeper: the TLS 1.3 handshake
21. What is mutual TLS, and when would you use it?
In mutual TLS the server also requests a certificate from the client, and the client proves it holds the matching private key with its own CertificateVerify signature, so both ends are authenticated. It is used between microservices and in service meshes, for partner and payment APIs, and for devices. Client certificates should come from a dedicated private CA, because trusting any publicly issued certificate would let in anyone who owns a domain.
Go deeper: mutual TLS and how to set it up
PKI operations interview questions
22. What is the difference between CRL, OCSP and OCSP stapling?
A CRL is a signed list of revoked serial numbers that clients download. OCSP lets a client ask a responder about one certificate, which adds a round trip and tells the CA which site you visit; with stapling, the server fetches a signed OCSP response and includes it in the handshake. On 15 March 2024, OCSP became optional and CRLs became mandatory for publicly trusted TLS certificates, and browsers mostly rely on lists they push to users, such as CRLSets and CRLite. Browser revocation checking is largely soft-fail.
Go deeper: revocation: CRLs, OCSP and stapling
23. What is Certificate Transparency?
Certificate Transparency (CT) is a set of public, append-only logs in which CAs record publicly trusted TLS certificates. The log returns a signed certificate timestamp (SCT), a promise to add the entry, and Chrome, Safari and Firefox on desktop require SCTs before they accept a publicly trusted certificate. Domain owners monitor the logs for certificates they never requested: CT makes mis-issuance visible, but it does not prevent it.
Go deeper: Certificate Transparency and how to monitor it
24. What is ACME, and how does the CA validate a domain?
ACME (RFC 8555) is the protocol that lets software request, validate, renew and revoke certificates without a person in the loop. The CA checks control of each name with a challenge: HTTP-01 (a file under /.well-known/acme-challenge/), DNS-01 (a TXT record, required for wildcards) or TLS-ALPN-01 (a special certificate on port 443). ACME Renewal Information (ARI) lets the CA tell each client when to renew.
Go deeper: ACME and the 47-day schedule
25. Why are certificate lifetimes getting shorter, and how would you prepare?
CA/Browser Forum ballot SC-081 cuts the maximum lifetime of publicly trusted TLS certificates to 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029. The reasons are unreliable revocation, fresher validation of names, and agility when a CA or an algorithm must change. Preparing means an inventory with owners, ACME automation that includes deployment and reload, ARI, and monitoring of what endpoints actually serve.
Go deeper: how to prepare for short-lived certificates
26. How would you prevent certificate-expiry outages?
Keep an inventory of every certificate with an owning team, automate renewal and deployment, and monitor what each endpoint actually serves rather than the files on disk. Alert well before expiry, including for intermediates and private roots, and check that services were reloaded after renewal. Look beyond web servers: load balancers, Kubernetes secrets, Java keystores and appliances cause most surprises.
Go deeper: inventory, expiry and renewal and how to check certificate expiry
27. What would you do if a private key were compromised?
Generate a new key pair, get a new certificate for it and deploy it everywhere the old key was used, then ask the CA to revoke the old certificate with the reason keyCompromise. Public CAs must revoke within 24 hours once they have evidence of a key compromise. Then search CT logs for other certificates on the same names, and find and fix how the key leaked. Remember that revocation reaches clients unevenly, so short lifetimes limit the exposure.
Go deeper: revocation
28. How would you troubleshoot “unable to get local issuer certificate”?
It means the client could not build a chain to a root it trusts. Check what the server really sends with openssl s_client -showcerts: if the intermediate is missing, fix the server so it sends the full chain. If the chain ends at a private or TLS-inspection root, add that root to the trust store the failing client actually uses, and never switch verification off.
Go deeper: the error page, how to check a server’s chain and the chain checker
Enterprise PKI and AD CS interview questions
29. What is a two-tier PKI, and why is the root kept offline?
A two-tier PKI has an offline root CA that signs only issuing CA certificates and its own CRL, and online issuing CAs that sign end-entity certificates. If an issuing CA is compromised, the root revokes it and signs a replacement, while the root and the trust installed on every device survive. The catch is that someone must bring the root out to sign a fresh CRL before the old one’s nextUpdate date.
Go deeper: PKI architecture and a CA of your own
30. What are a CP and a CPS?
A certificate policy (CP) states what must be true for a class of certificates: who may get them, how identities are checked, and the rules for keys, lifetimes, revocation and audit. A certification practice statement (CPS) describes how one specific CA meets that policy in practice. Both follow the framework of RFC 3647, which public CAs and the CA/Browser Forum also use.
Go deeper: a CA of your own
31. What is an HSM, and what is a key ceremony?
A hardware security module generates and uses keys inside tamper-resistant hardware and never releases the private key in plain form; modules are validated against FIPS 140-3 or Common Criteria. A key ceremony is the scripted, witnessed and recorded procedure in which a root or other CA key is created or used, under multi-person control such as three of five custodians. An HSM stops a key from being copied, but not from being misused by a compromised system that is allowed to call it.
Go deeper: guarding the keys: HSMs and key ceremonies
32. What is the difference between an enterprise CA and a standalone CA in AD CS?
An enterprise CA is integrated with Active Directory: it issues from certificate templates, uses directory accounts and groups to approve requests, and supports automatic enrolment and smart-card sign-in. A standalone CA does not need Active Directory and does not use templates; each request carries all its details and, by default, waits for an administrator. A common design is a standalone root kept offline with enterprise issuing CAs below it (Microsoft documentation).
Go deeper: a CA of your own
33. What are certificate templates, and what is the main security risk?
Templates define what each kind of certificate contains and who may enrol for it: key type, lifetime, extended key usages and, above all, where the subject name comes from. The classic risk is a template that lets ordinary users supply their own subject name for a certificate that can be used to sign in, which can let them impersonate others, including administrators. Defend by taking names from Active Directory, restricting enrolment, requiring CA manager approval where names come from the request, and reviewing templates and CA settings regularly (Microsoft guidance).
Go deeper: a CA of your own
34. What is strong certificate mapping in Windows?
It is how a domain controller ties a certificate used for sign-in to exactly one account, using identifiers that cannot be reused, such as the account’s security identifier (SID) in a certificate extension. Since February 2025, domain controllers deny certificate sign-in when a certificate cannot be strongly mapped to an account. Certificates from older templates or third-party CAs may need the new mapping before they work for sign-in.
Go deeper: a CA of your own
Advanced and post-quantum interview questions
35. Why is quantum computing a threat to PKI?
A large quantum computer running Shor’s algorithm would break RSA and elliptic-curve cryptography, which today’s key exchange and signatures rely on. Symmetric ciphers and hash functions are far less affected: Grover’s algorithm at most halves their effective strength. The urgent risk is “harvest now, decrypt later”: encrypted traffic recorded today could be decrypted once such a machine exists.
Go deeper: post-quantum cryptography
36. What are ML-KEM and ML-DSA, and where are they used today?
They are NIST’s post-quantum algorithms, published on 13 August 2024 as FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). ML-KEM is for key establishment and ML-DSA for signatures; SLH-DSA is a hash-based signature alternative. ML-KEM is already in everyday use through hybrid key exchange, which combines it with X25519 so the connection stays safe if either part holds: X25519MLKEM768 hybrid post-quantum key exchange is on by default in Chrome, Firefox and Apple's operating systems. Certificates are slower to change: Publicly trusted TLS certificates still use classical signatures such as RSA and ECDSA; post-quantum signatures are not yet allowed in them.
Go deeper: post-quantum cryptography and how to test post-quantum TLS
37. What is crypto-agility?
Crypto-agility is the ability to change algorithms, key sizes or CAs without redesigning your systems. It comes from an inventory of where cryptography is used, algorithms set in configuration rather than code, protocols that negotiate, and fully automated certificate renewal. It matters for the post-quantum migration and for replacing a distrusted CA quickly.
Go deeper: post-quantum cryptography and PKI best practices
38. What is cross-signing, and why does it matter?
Cross-signing gives one CA key two certificates from different issuers, so a chain can end at either an older, widely trusted root or a newer one. It lets a new root work on old devices while it spreads through trust stores. It can also surprise you: when an old root expires, clients that cannot choose the other path fail, as happened when DST Root CA X3 expired on 30 September 2021.
Go deeper: cross-signing and root expiry
39. What is certificate pinning, and why is it discouraged?
Pinning builds the expected public key, usually as a hash of its SubjectPublicKeyInfo, into a client, so it rejects any other key even when the chain is valid. It narrows trust, but it breaks whenever the server’s key, intermediate or root changes, and short lifetimes and root rotations make those changes frequent. Browsers dropped HTTP Public Key Pinning; where an app must still pin, it should pin to the key, include a backup key, and have a way to update the pins.
Go deeper: cross-signing, root expiry and pinning
Where to go next
- Fill the gaps: the PKI handbook explains every answer above in depth, starting from What is PKI?.
- Prepare quickly: the crash course covers the whole field in ten lessons, and the cheat sheet puts the commands on one page.
- Practise on real certificates: inspect a certificate with OpenSSL, check a server’s chain, and use the certificate decoder.
- For design questions: PKI architecture, public vs private PKI and PKI best practices.
- Look up a term: the glossary.
Frequently asked questions
How would you explain PKI in a job interview?
Say what problem it solves, then how. Public-key cryptography proves that someone holds a private key, but not who they are. PKI binds public keys to names: a certificate authority checks the requester and signs a certificate, and clients accept it only if its chain of signatures leads to a root already in their trust store. Then give an example, such as HTTPS.
Which commands should I know for a PKI interview?
Know how to inspect a live server and a certificate file. openssl s_client -connect example.com:443 -servername example.com -showcerts shows the chain a server sends, openssl x509 -in cert.pem -noout -text decodes a certificate, openssl verify -CAfile root.pem -untrusted intermediate.pem leaf.pem checks a chain, and openssl req -new creates a CSR. On Windows, certutil -dump and certutil -verify do similar jobs.
What should I ask the interviewer about their PKI?
Ask how they keep track of their certificates, how renewal and deployment are automated, who runs the private CA and where its root key is kept, how they would replace a CA after a distrust, and how they are preparing for shorter public lifetimes and post-quantum cryptography. The answers show how mature their PKI is, and what your daily work would be.
How should I prepare for a PKI interview?
Learn to explain the basics precisely in your own words: keys, signatures, certificates, chains and trust stores. Practise on real certificates with openssl s_client and openssl x509, and decode a few chains. Then prepare one or two stories about certificates you renewed, automated or debugged, and know what is changing: shorter certificate lifetimes, server-only public TLS certificates and post-quantum cryptography.
Early edition. Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? Tell us.