简体   繁体   English

如何识别我的SSL公钥证书?

[英]how can I identify my SSL public key certificate?

Amazon Cloudfront is giving me errors, either my private key doesn't match my public key certificate or my public key certificate cannot be parsed as it's invalid. Amazon Cloudfront给我错误,或者我的私钥与我的公钥证书不匹配,或者由于我的公钥证书无效而无法对其进行解析。

Using Godaddy for my SSL certificate middle man/provider, I got a: 使用Godaddy作为SSL证书中间人/提供者,我得到了:

.pem whoose contents beings with "-----BEGIN RSA PRIVATE KEY-----" .pem whoose内容包含“ ----- BEGIN RSA PRIVATE KEY -----”

(I'm assuming that's my private key) (我假设这是我的私钥)

Inside Godaddy I am able to download some certs for the SSL, they are: 在Godaddy内部,我能够下载SSL的一些证书,它们是:

.crt (type = Security Certificate) .p7b (type = PKCS #7 Certificate) .crt(类型=安全证书).p7b(类型= PKCS#7证书)

Is one of the above my public key? 以上是我的公钥之一吗? Or is there another way I am supposed to get my public key? 还是我应该以其他方式获取我的公钥?

I have encountered this issue before with bad CSR Request. 之前,我的CSR请求不正确,因此遇到了此问题。 According to GoDaddy: To install a digital certificate, you must first generate and submit a Certificate Signing Request (CSR) to the Certification Authority (CA). 根据GoDaddy的说法:要安装数字证书,您必须首先生成并向证书颁发机构(CA)提交证书签名请求(CSR)。 The CSR contains your certificate-application information, including your public key. CSR包含您的证书申请信息,包括公共密钥。 Use your Web server software to generate the CSR, which will also create your public/private key pair used for encrypting and decrypting secure transactions. 使用Web服务器软件生成CSR,该CSR还将创建用于加密和解密安全交易的公共/专用密钥对。

http://support.godaddy.com/help/article/5343/generating-a-certificate-signing-request http://support.godaddy.com/help/article/5343/generating-a-certificate-signing-request

It also states: NOTE: When generating your CSR, specify a key size of 2048 or higher . 它还说明:注意:生成CSR时,请指定2048或更大的密钥大小

The key size is sometimes the culprit. 密钥大小有时是罪魁祸首。 Hope it helps. 希望能帮助到你。

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

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