Heroku ssl:endpoint with GlobalSign ExtendedSSL

僤鯓⒐⒋嵵緔 提交于 2020-01-04 01:19:10

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/15568922/heroku-sslendpoint-with-globalsign-extendedssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!