简体   繁体   English

从CSR和KEY文件生成SSL证书

[英]SSL Certificate Generation from CSR and KEY file

My web host is shutting down - as they have been bought out. 我的虚拟主机已关闭-因为它们已经被买断。 I am having difficulty getting my SSL certificate from them.. I am on my 3rd attempt and I have managed to get 2 files.. one I believe is the initial CSR, the Other is my Private Key .KEY file (although the Hosting Provider has been giving me them and claiming they are .crt - they are not) - that would be my actual Certificate! 我很难从他们那里获取SSL证书。.我正在第三次尝试,并且设法获得了2个文件。.我相信一个是初始CSR,另一个是我的私钥.KEY文件(尽管托管提供商一直给我他们并声称他们是.crt-他们不是)-那将是我的真实证书!

I have my CSR file which is headed by -----BEGIN CERTIFICATE REQUEST-----, I have my Private KEY file which is headed by -----BEGIN RSA PRIVATE KEY----- 我的CSR文件以----- BEGIN CERTIFICATE REQUEST -----为首,我的私钥文件以----- BEGIN RSA PRIVATE KEY -----为首

Is there any way fro me to use both of these components to produce my .crt file - I am not sure if my hosting provider (what is left of their support team ) knows the difference between these three files. 我有没有办法使用这两个组件来生成我的.crt文件-我不确定我的托管服务提供商(他们的支持团队还剩下什么)是否知道这三个文件之间的区别。 Of course I am certainly learning myself. 当然,我当然在学习自己。 I had just purchased that cert from them about 4 months ago and I need it. 大约4个月前,我刚刚从他们那里购买了该证书,我需要它。

So is there any way I can use my two files .CSR and .KEY to generate my .crt file ? 那么,有什么方法可以使用我的两个文件.CSR和.KEY生成我的.crt文件?

There is no way to re-create your certificate from the private key and certificate signing request (CSR), unless the certificate was self-signed. 除非证书是自签名的,否则无法通过私钥和证书签名请求(CSR)重新创建证书。 However, if the website is still up you can simply connect to the website with various tools and retrieve the certificate that way. 但是,如果网站仍在运行,则可以使用各种工具直接连接到该网站并以这种方式获取证书。 Make sure you also retrieve any intermediate certificates as well, although these can almost certainly be obtained from your certificate authority (CA) website as well. 确保也可以检索任何中间证书,尽管几乎可以肯定也可以从您的证书颁发机构(CA)网站获得这些证书。

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

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