Cerbot在一台机器上生成证书,并在另一台机器上使用

我正在尝试使用encryptionhttps://certbot.eff.org/来生成SSL证书。

使用这个命令,我可以生成certificate.pem和私钥:

certbot certonly --manual 

我使用http(webroot)文件完成了testing。

之后,我已将证书文件复制到另一台服务器,并将其configuration为使用它们。 这另一台服务器是运行在证书域上。

这是Apache的configuration:

 <IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile /root/fullchain.pem SSLCertificateKeyFile /root/privkey.pem SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA$ SSLHonorCipherOrder on SSLCompression off SSLOptions +StrictRequire LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common ServerName <MYHOST.COM> </VirtualHost> </IfModule> 

但是当我通过https访问这个服务器时,它显示NET :: ERR_CERT_COMMON_NAME_INVALID错误。

任何想法我做错了什么?