CSR和SSL证书。和私钥

发布于 2025-02-09 09:14:21 字数 209 浏览 1 评论 0原文

我使用密钥对创建了CSR。我相信CSR只会包括我的公钥。然后我将企业社会责任送往ca。我从CA获得了证书。 当我看证书时。我可以看到它具有序列号和一些身份信息。

可以说,我使用我的私钥创建了此序列号和身份信息的JWS(JSON Web签名),然后将其发送给CA。 他们如何解密(或验证)? (因为我不相信他们有我的私钥。)

I created CSR using my key pair. and I believe that CSR will only include my Public Key. and I sent the CSR to CA. and I got certificate from the CA.
When I look at certificate. I can see that it has serial number and some identity information.

Lets say, I create JWS(JSON Web Signature) of this serial number and identity information with my private key, and send it to CA.
How do they decrypt (or validate) it? (Because I don't believe that they have my private key.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩动你心 2025-02-16 09:14:21

哦,我明白了,当我用私钥发送JW时。我不使用该钥匙进行加密。我使用我的私钥签署消息。

然后,CA知道我由我的私钥签名。因为他们有公钥。序列号实际上并未在JW中加密,而是由我签名的。

JWS令牌的内容是基本64编码,未加密
(请记住编码与加密不同!)。

Oh.. I see, When I send JWS with my private key. I don't use that key for encryption. I use my private key to sign the message.

then CA will know that I signed by my private key. because they have public key. and Serial Number is not actually encrypted in JWS but signed by me.

The contents of JWS token are Base64 encoded and not encrypted
(remember encoding is different from encryption!).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文