问题描述
我只是不知道如何将它添加到 ssl:endpoint
addon。
当我注册了ExtendedSSL时,我不得不生成CSR证书,其中包含以下文件:
签名完成后,GlobalSign向我提供以下内容:
Certificate,ExtendedSSL Intermediate Certificate和Extended Validation Cross Certificate server.crt。
并且我已将private-key.key复制到server.key中
当我尝试将它添加到添加中时,我得到:
$ heroku certs:add server.crt server.key --app myapp
解决信任链...失败
!没有给出有效的非密码保护密钥。
有谁知道我做错了什么?
我找到了答案。
私钥受密码保护。您无法将密码钥匙添加到heroku。您可以运行以下命令来删除密码:
openssl rsa -in private-key.key -out private-key-new.key
然后执行:
heroku certs:add server.crt private-key-new.key --app myapp
I have signed up for GlobalSign ExtendedSSL.
I just can't figure out how to add this to ssl:endpoint
addon.
When I signed up for ExtendedSSL i had to generate CSR certificate, which has the following files:
- private-key.key
- www.domain.com_csr.pem
Once the sign was complete, GlobalSign gave me the following:
- SSL Certificate
- ExtendedSSL Intermediate Certificate
- Extended Validation Cross Certificate
I have combined SSL Certificate, ExtendedSSL Intermediate Certificate and Extended Validation Cross Certificate server.crt.And I have copied private-key.key to server.key
When i try to add it to the add, i get:
$ heroku certs:add server.crt server.key --app myapp
Resolving trust chain... failed
! No valid, non-passphrase-protected keys given.
Does anyone know what I did wrong?
I have found the answer.
The private key is password protected. You cannot add passworded keys to heroku. You can remove the password by running:
openssl rsa -in private-key.key -out private-key-new.key
And then run:
heroku certs:add server.crt private-key-new.key --app myapp
这篇关于Heroku ssl:带有GlobalSign增强型SSL的端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!