SSL配置无法读取server.crt文件 [英] SSL Configuration Unable to read server.crt file
问题描述
创建一个自签名的SSL证书
我生成了csr,并且生成了证书csr和密钥 当我回到ssl heroku教程 我试过了 heroku certs:add server.crt bundle.pem server.key 但它给了我这个错误 我很确定我有server.crt,因为当我生成它,内容弹出。我没有收到错误。 我对heroku相当陌生,昨天晚上我设法将一个小型Rails应用程序部署到heroku中。 I我没有看到这个railscasts视频中使用nginx或pow。 http://railscasts.com/episodes/357-adding-ssl 这会是一个问题吗?<解决方案
解决信任链...失败
!无法读取server.crt文件
当我使用不正确的命令行开关(-app)指定应用程序名称时,我遇到了同样的问题。只要我使用正确的开关--app(两个破折号),错误就消失了。所以这必须是一个通用的错误,当然会误导SSL插件的打印。
I am trying to go through this tutorial here
Creating a Self Signed SSL Certificate
https://devcenter.heroku.com/articles/ssl-certificate-self
I generated the csr, and the key and generated the certificate csr
When I head back to the ssl heroku tutorial
I tried
heroku certs:add server.crt bundle.pem server.key
but its giving me this error
Resolving trust chain... failed
! Unable to read server.crt file
I am pretty sure I have server.crt, because when I generated it, the contents popped up. I didn't get an error.
I am quite new to heroku, I managed to deploy a small rails app to heroku last night
I am not using nginx or pow from this railscasts video which I haven't watched yet
http://railscasts.com/episodes/357-adding-ssl
could this be a problem?
I had the same problem when I specified application name with incorrect command line switch (-app ). As soon as I used correct switch --app (two dashes) the error disappeared. So this must be a generic error, misleading of course, that the SSL addon prints.
这篇关于SSL配置无法读取server.crt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!