简体   繁体   English

从 PositiveSSL 证书创建私钥

[英]Create a private Key from a PositiveSSL Certificate

I've just receive a certificate, containing those files:我刚刚收到一个证书,其中包含这些文件:

- Root CA Certificate - AddTrustExternalCARoot.crt
- Intermediate CA Certificate - USERTrustRSAAddTrustCA.crt
- Intermediate CA Certificate - SectigoRSADomainValidationSecureServerCA.crt
- Your PositiveSSL Certificate - www_guerrilla_app.crt

and also the PositiveSSL Certificate in text format.以及文本格式的 PositiveSSL 证书。

I would like to know if it is possible to generete the Private Key from the command line, maybe using Java or other tool我想知道是否可以从命令行生成私钥,也许使用 Java 或其他工具

No. If you could it would mean the entire https internet is broken.不。如果可以,这意味着整个 https 互联网都已损坏。 You need the key from whoever generated the CSR.您需要来自生成 CSR 的任何人的密钥。

The proper workflow is: create a SSL key, generate a Certificate Signing Request (CSR) with that key, provide the CSR to the SSL Certificate provider (PositiveSSL), have them sign it and give you a certificate.正确的工作流程是:创建 SSL 密钥,使用该密钥生成证书签名请求 (CSR),将 CSR 提供​​给 SSL 证书提供商 (PositiveSSL),让他们签名并为您提供证书。

To add to what Kees answered - you will generate CSR and private key together.添加到 Kees 回答的内容 - 您将一起生成 CSR 和私钥。 This private key you will required when add them to load balancer to nginx将它们添加到负载均衡器到 nginx 时需要此私钥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM