linux – 为SERVER配置的RSA证书不包含与服务器名称匹配的ID

发布时间:2020-02-13 发布网站:编程之家
编程之家收集整理的这篇文章主要介绍了linux – 为SERVER配置的RSA证书不包含与服务器名称匹配的ID编程之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近在它上面启动了一个带有WordPress的LAMP服务器(所有最新版本),我正在尝试安装我最近购买的SSL证书.当我重新启动apachectl时,error_log给了我这个:
[Tue Feb 25 01:07:14.744222 2014] [mpm_prefork:notice] [pid 1744] AH00169: caught SIGTERM,shutting down
[Tue Feb 25 01:07:17.135704 2014] [suexec:notice] [pid 1765] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 25 01:07:17.217424 2014] [auth_digest:notice] [pid 1766] AH01757: generating secret for digest authentication ...
[Tue Feb 25 01:07:17.218686 2014] [lbmethod_heartbeat:notice] [pid 1766] AH02282: No slotmem from mod_heartmonitor
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.5/modules/mysql.so' - /usr/lib64/php/5.5/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.5/modules/mysqli.so' - /usr/lib64/php/5.5/modules/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Feb 25 01:07:17.305292 2014] [mpm_prefork:notice] [pid 1766] AH00163: Apache/2.4.6 (Amazon) OpenSSL/1.0.1e-fips PHP/5.5.7 configured -- resuming normal operations
[Tue Feb 25 01:07:17.305378 2014] [core:notice] [pid 1766] AH00094: Command line: '/usr/sbin/httpd'

虽然ssl_error_log给了我这个:

[Tue Feb 25 00:57:15.802287 2014] [ssl:warn] [pid 1705] AH01909: RSA certificate configured for ec2-XX-XXX-XXX-XX.compute-1.amazonaws.com:443 does NOT include an ID which matches the server name
[Tue Feb 25 00:57:15.899327 2014] [ssl:warn] [pid 1706] AH01909: RSA certificate configured for ec2-XX-XXX-XXX-XX.compute-1.amazonaws.com:443 does NOT include an ID which matches the server name

我将ssl.conf中的“ServerName”更改为我的服务器名称(dcturano.com)并重新启动了apachectl,但是发生了此错误.有什么想法吗?

顺便说一句,我没有设置服务器的CommonName,这可能是问题吗?

解决方法

openssl x509 -in server.crt -noout -subject

应该返还证书的CN.这是您必须在ServerName指令中使用并连接到的名称.

总结

以上是编程之家为你收集整理的linux – 为SERVER配置的RSA证书不包含与服务器名称匹配的ID全部内容,希望文章能够帮你解决linux – 为SERVER配置的RSA证书不包含与服务器名称匹配的ID所遇到的程序开发问题。

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您喜欢交流学习经验,点击链接加入编程之家官方QQ群:1065694478
编程之家官方公众号

微信公众号搜索 “ 程序精选 ” ,选择关注!

微信公众号搜索 “ 程序精选 ”
精选程序员所需精品干货内容!