PKI (Public Key Infrastructure): Trust Issues Solved by Math (Not Therapy)
在处理SSH、TLS、Kubernetes等场景时,人们常因公私钥对的用途混淆而困惑。本文解释了不同加密工具和格式的应用场景及其背后的原因,并指导如何正确区分和使用这些密钥。 2025-7-13 05:57:4 Author: infosecwriteups.com(查看原文) 阅读量:11 收藏

Jehad Nasser

If you’ve ever opened your ~/.ssh, or ~/k8s-certs folder and thought; “Wait, which key is this for again?”, you’re not alone.

👉 Not a Medium member? You can read it here.

We all generate public/private key pairs; for SSH, for TLS, for Kubernetes, for APIs, but somehow they all end up looking the same.
.key, .crt, .pem, .pub, .csr… it’s like cryptographic alphabet soup.

The problem isn’t the math — it’s the use cases.

When should you use SSH keys?
When do you need a TLS certificate?
When does a Certificate Authority (CA) need to sign anything?
And why do some keys work fine without ever talking to a CA?

This article won’t just tell you what PKI (Public Key Infrastructure) is, it will tell you when to use what, why the tools and formats are different, and how to stop treating all crypto keys like they’re the same person in different hoodies.

Let’s go.

First, a public/private key pair is just math.


文章来源: https://infosecwriteups.com/pki-public-key-infrastructure-trust-issues-solved-by-math-not-therapy-c536b7c2cc24?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh