I keep getting this error in my production enviroment
我一直在生产环境中遇到这个错误
OpenSSL::SSL::SSLError (hostname was not match with the server certificate)
OpenSSL :: SSL :: SSLError(主机名与服务器证书不匹配)
I really don't know much about certificates. I have configured rails to use sendmail. Sendmail is working well in other php applications on the server. I use Phusion Passenger. I also have a redmine-app which uses sendmail and also works fine (but it runs rails 2.x) Any idea how to solve this?
我真的不太了解证书。我已配置rails使用sendmail。 Sendmail在服务器上的其他php应用程序中运行良好。我使用Phusion Passenger。我也有一个使用sendmail的redmine-app也工作正常(但它运行rails 2.x)任何想法如何解决这个问题?
1 个解决方案
#1
2
This means the SSL Certificate installed on the mail server did not match its hostname.
这意味着邮件服务器上安装的SSL证书与其主机名不匹配。
You can disable these exceptions, but then you are vulnerable to man-in-the-middle attacks.
您可以禁用这些异常,但之后您很容易受到中间人攻击。
The other option is to get a proper SSL Certificate (or install it correctly) for your mail server.
另一种选择是为您的邮件服务器获取正确的SSL证书(或正确安装)。
For more on SSL Certs I suggest superuser.com
有关SSL Certs的更多信息,我建议使用superuser.com
#1
2
This means the SSL Certificate installed on the mail server did not match its hostname.
这意味着邮件服务器上安装的SSL证书与其主机名不匹配。
You can disable these exceptions, but then you are vulnerable to man-in-the-middle attacks.
您可以禁用这些异常,但之后您很容易受到中间人攻击。
The other option is to get a proper SSL Certificate (or install it correctly) for your mail server.
另一种选择是为您的邮件服务器获取正确的SSL证书(或正确安装)。
For more on SSL Certs I suggest superuser.com
有关SSL Certs的更多信息,我建议使用superuser.com