我更改了 CentOS 6 GNU/Linux 主机名,现在新主机名一切正常。但是在执行 openssl 命令时,例如:
# openssl s_client -CApath /etc/ssl/certs -showcerts -connect google.com:443
CONNECTED(00000003)
139907232921416:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake
failure:s23_lib.c:184:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 247 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
如果我在其他机器上运行相同的命令,而该机器没有更改其原始主机名,那么它就可以完美运行。我知道我遇到了 SSL 问题,我需要为配置的新主机名重新生成服务器证书,对吗?我们如何重新生成这些证书,例如,如果我在服务器的初始启动时?