Heroku SSL配置无法读取server.crt文件 [英] Heroku SSL Configuration Unable to read server.crt file

查看:141
本文介绍了Heroku SSL配置无法读取server.crt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里遇到与Jngai1297相同的问题: SSL配置无法读取server.crt文件,只有我认为我拼写正确。



我试图更新我们的SSL证书。我们从startssl.com购买了一个证书。我下载了ssl.key文件,并检索了我的ssl.crt文件,我也下载了sub.class2.server.ca.pem和ca.pem



我跑了:

  openssl rsa -in ssl.key -out sslnopas.key 
cat ssl.crt sub.class2.server。 ca.pem ca.pem> concatenated.crt
heroku certs:update concatenated.crt sslnopass.key --app< MYAPPNAME>

与我的实际应用程序名称一样,但我得到:

 解决信任链...失败
!无法读取concatenated.crt文件

有没有什么办法可以得到更好的错误信息?我正在使用最新版本的heroku toolbelt 3.6.0解决方案

想通了 - 我拼错了sslnopass.key文件! concatenated.crt文件很好,并且错误消息是错误的。看起来这是Heroku的默认错误消息,因为这个调用会出错。


I'm having the same issue as Jngai1297 here: SSL Configuration Unable to read server.crt file, only I think I've spelled everything correctly.

I am trying to update our ssl certificate. We purchased a cert from startssl.com. I downloaded the ssl.key file, and retrieved my ssl.crt file, I also downloaded sub.class2.server.ca.pem and ca.pem

I ran:

openssl rsa -in ssl.key -out sslnopas.key
cat ssl.crt sub.class2.server.ca.pem ca.pem > concatenated.crt 
heroku certs:update concatenated.crt sslnopass.key --app <MYAPPNAME>

with as my actual application name, but I'm getting:

Resolving trust chain... failed
!    Unable to read concatenated.crt file

Is there any way I could get a better error message? I'm on the latest version of heroku toolbelt 3.6.0

解决方案

Figured it out - I misspelled the sslnopass.key file! The concatenated.crt file was fine, and the error message was wrong. Looks like this is Heroku's default error message for just about anything that goes wrong with this call.

这篇关于Heroku SSL配置无法读取server.crt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆