<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6" -->

---
title: A visual guide to Public Key Infrastructure(PKI) — From...
description: A conceptual walkthrough of Public Key Infrastructure that builds understanding step by step, starting from plaintext communication and progressively adding...
canonical: https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A visual guide to Public Key Infrastructure(PKI) — From Plaintext to a Verified Certificate | daily.dev
og:description: A conceptual walkthrough of Public Key Infrastructure that builds understanding step by step, starting from plaintext communication and progressively adding...
og:url: https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6
og:image: https://api.daily.dev/og/posts/KbxvO51S6.png
og:image:alt: A visual guide to Public Key Infrastructure(PKI) — From Plaintext to a Verified Certificate
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A visual guide to Public Key Infrastructure(PKI) — From Plaintext to a Verified Certificate

**[Towards Dev](https://daily.dev/sources/towardsdev)** · 14 min read · 0 upvotes · 0 comments

## Summary

A conceptual walkthrough of Public Key Infrastructure that builds understanding step by step, starting from plaintext communication and progressively adding encryption, then asymmetric cryptography, then certificates and certificate authorities. Explains why symmetric encryption alone fails (key exchange problem), how asymmetric encryption solves key establishment, why encryption alone doesn't prevent man-in-the-middle attacks, and how certificates and CA signatures provide authentication. Covers the CSR process, how CAs validate domain ownership and sign certificates, and the four checks a client performs when verifying a certificate (structural validity, expiration, hostname/SAN match, and CA signature validity), plus how trust stores anchor the whole system.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdev.com/pki-public-key-infrastructure-explained-62df75106a5a>

## Questions this post answers

### What is the difference between symmetric and asymmetric encryption in TLS connections?

Symmetric encryption uses one shared secret key for both encrypting and decrypting data and is fast, making it ideal for bulk data transfer, but the two parties need a secure way to exchange that key first. Asymmetric encryption uses a mathematically related key pair, a public key and a private key, where either key can encrypt but only the other key in the pair can decrypt; this solves the key-exchange problem by letting a client encrypt a session key with the server's public key so only the server's private key can decrypt it.

_Developers untangling TLS handshakes can dig into these cryptography fundamentals with daily.dev._

### What is a Certificate Signing Request (CSR) and why does a server need to sign it?

A CSR is a package a server creates containing its public key, common name, and subject alternative names, which it sends to a Certificate Authority to request a signed certificate. The server signs the CSR with its own private key so the CA can verify, using the public key inside the CSR, that the requester actually holds the matching private key, proving key ownership before the CA checks domain control and issues a signed certificate.

_Engineers setting up HTTPS for a domain can review CSR and CA workflows on daily.dev._

### What four checks does a browser perform to verify a TLS certificate is valid?

A browser checks that the certificate is structurally valid per the X.509 format, that it falls within its validity period and hasn't expired, that the requested hostname matches the certificate's Subject Alternative Name entries, and that the issuing CA's signature is cryptographically valid using the CA's public key from the browser's trust store. Failing any check causes the browser to reject the certificate.

_Developers debugging certificate errors can reference these validation steps on daily.dev._

## Similar posts on daily.dev

- [WebPKI and You](https://daily.dev/posts/webpki-and-you-auxufh8pa) · Lobsters · 0 upvotes · 0 comments
- [A visual guide to Public Key Infrastructure \(PKI\) Part 2 — When the Server Needs to Trust the Client](https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-part-2-when-the-server-needs-to-trust-the-client-u3icrtiag) · Towards Dev · 0 upvotes · 0 comments
- [Public Key Authentication: What It Is and How It Works](https://daily.dev/posts/public-key-authentication-what-it-is-and-how-it-works-1oenthewx) · Descope · 1 upvotes · 0 comments
- [Private Certificate Authority 101: From Setup to Management](https://daily.dev/posts/private-certificate-authority-101-from-setup-to-management-h7xlug7cd) · Security Boulevard · 0 upvotes · 0 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#cryptography](https://daily.dev/tags/cryptography)

[View this post on daily.dev](https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A visual guide to Public Key Infrastructure(PKI) — From Plaintext to a Verified Certificate","url":"https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6"},"datePublished":"2026-09-04T12:01:01.249Z","dateModified":"2026-09-14T08:38:59.953Z","description":"A conceptual walkthrough of Public Key Infrastructure that builds understanding step by step, starting from plaintext communication and progressively adding...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31804e6d962a06a1f34199d58d8a123c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31804e6d962a06a1f34199d58d8a123c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Towards Dev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Towards Dev","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2c710db2750a4a70835862534cb7c9d4","url":"https://daily.dev/sources/towardsdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"authentication,cryptography","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Towards Dev","item":"https://daily.dev/sources/towardsdev"},{"@type":"ListItem","position":3,"name":"A visual guide to Public Key Infrastructure(PKI) — From Plaintext to a Verified Certificate"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-from-plaintext-to-a-verified-certificate-kbxvo51s6#faq","mainEntity":[{"@type":"Question","name":"What is the difference between symmetric and asymmetric encryption in TLS connections?","acceptedAnswer":{"@type":"Answer","text":"Symmetric encryption uses one shared secret key for both encrypting and decrypting data and is fast, making it ideal for bulk data transfer, but the two parties need a secure way to exchange that key first. Asymmetric encryption uses a mathematically related key pair, a public key and a private key, where either key can encrypt but only the other key in the pair can decrypt; this solves the key-exchange problem by letting a client encrypt a session key with the server's public key so only the server's private key can decrypt it. Developers untangling TLS handshakes can dig into these cryptography fundamentals with daily.dev."}},{"@type":"Question","name":"What is a Certificate Signing Request (CSR) and why does a server need to sign it?","acceptedAnswer":{"@type":"Answer","text":"A CSR is a package a server creates containing its public key, common name, and subject alternative names, which it sends to a Certificate Authority to request a signed certificate. The server signs the CSR with its own private key so the CA can verify, using the public key inside the CSR, that the requester actually holds the matching private key, proving key ownership before the CA checks domain control and issues a signed certificate. Engineers setting up HTTPS for a domain can review CSR and CA workflows on daily.dev."}},{"@type":"Question","name":"What four checks does a browser perform to verify a TLS certificate is valid?","acceptedAnswer":{"@type":"Answer","text":"A browser checks that the certificate is structurally valid per the X.509 format, that it falls within its validity period and hasn't expired, that the requested hostname matches the certificate's Subject Alternative Name entries, and that the issuing CA's signature is cryptographically valid using the CA's public key from the browser's trust store. Failing any check causes the browser to reject the certificate. Developers debugging certificate errors can reference these validation steps on daily.dev."}}]}
```

