如何在 Windows XP 上获取 x.509 证书

发布于 2024-10-11 06:46:09 字数 197 浏览 6 评论 0 原文

为了连接到 Web 服务,我需要 X.509 证书。

有了这个证书,我就需要将公钥发送给该 Web 服务的客户支持。

我真的不知道如何生成这个证书。我浏览了一些解释什么是 X.509 的网站,但没有找到有用的内容。

基本上我想知道:

  • 如何生成证书?
  • 如何从该证书获取公钥?

In order to connect to a web service, I need a X.509 certificate.

With this certificate I then need to send a public key to the customer support of this web service.

I am really clueless on how to generate this certificate. I had a look at a few website explaining what is X.509, but I did not find something helpful.

Basically I would like to know:

  • How can I generate a certificate ?
  • How to get a public key from that certificate ?

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

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

发布评论

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

评论(2

七堇年 2024-10-18 06:46:09

查看此问题的答案。它涉及使用 Windows 系统上可用的 makecert 工具。

有关 makecert 可以做什么以及如何做的更多信息,请参阅 本指南makecert 文档

Take a look at the answer to this question. It involves using the makecert tool, which is available on Windows systems.

For more information on what makecert can do and how to do it, see this guide and the makecert documentation.

2024-10-18 06:46:09

嗯,我认为简短的答案是您可以使用 OpenSSL 之类的东西来做到这一点。更多信息此处。我认为还有一些其他答案可能会有所帮助。

尝试这样的命令:

openssl req -x509 -newkey rsa:1024 -keyout your_private_key.pem -out your_cert.pem -nodes -config openssl.cfg -subj <Not sure what you'd put here> -days 365

这应该生成 your_private_key.pem(您的私钥)和 your_cert(您的证书)。您需要对输入“主题”的内容进行一些研究,我知道它需要采用特定的格式。我认为您可以将该证书发送给客户支持,他们可以检索公钥,或者更确切地说,也许该证书就是公钥。我并不是这方面的专家,但这应该会让您走上正确的道路。

编辑:在安装 OpenSSL 的位置的 \bin 目录中运行该命令,或者更改“-config”的值以指向“openssl.cf”的正确位置(位于 \bin 下)。

Hmmm, I think the short answer is that you can do it with something like OpenSSL. More info here. I think there is also some other answers on SO that might help.

Try a command like this:

openssl req -x509 -newkey rsa:1024 -keyout your_private_key.pem -out your_cert.pem -nodes -config openssl.cfg -subj <Not sure what you'd put here> -days 365

That should generate your_private_key.pem, your private key, and your_cert, your certificate. You'd need to do some research as to what to enter for "subj", I know it needs to be in a specific format. I think you can just send customer support that certificate and they can retrieve the public key, or rather, maybe that certificate IS the public key. I'm not exactly an expert on this, but this should put you on the right track.

EDIT: Either run that command in the \bin directory of wherever you install OpenSSL, or change the value of "-config" to point to the right location of "openssl.cf", which is under \bin.

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