
参考サイト 「Apache httpd 2.4 を CentOS 7 に yum でインストールする手順」
さくらのVPSでOSを再インストールしたのですが、Let's Encryptを導入してもアクセスができなくて困っております。
導入手順は次のようにしました。
さくらのVPS (CentOS7)
Apacheのバージョンは Server version: Apache/2.4.6 (CentOS) です。
# yum install mod_ssl # yum install certbot python2-certbot-apache #ファイアウォールの設定 # firewall-cmd --add-service=https --zone=public --permanent # systemctl restart firewalld $ sudo yum install epel-release $ sudo yumm update # certbot certonly --webroot -w /var/www/html -d www.panda.com # systemctl restart httpd
この接続ではプライバシーが保護されません」
「xxx.xxx.xxx では、悪意のあるユーザーによって、パスワード、メッセージ、クレジット カードなどの情報が盗まれる可能性があります。」 net::ERR_CERT_AUTHORITY_INVALID
となります。
作成されたサーバー証明祖は以下のようになっています。
# ls -l /etc/letsencrypt/live/www.panda.com/ total 4 -rw-r--r-- 1 root root 692 Mar 30 10:09 README lrwxrwxrwx 1 root root 43 Mar 30 10:09 cert.pem -> ../../archive/www.panda.com/cert1.pem lrwxrwxrwx 1 root root 44 Mar 30 10:09 chain.pem -> ../../archive/www.panda.com/chain1.pem lrwxrwxrwx 1 root root 48 Mar 30 10:09 fullchain.pem -> ../../archive/www.panda.com/fullchain1.pem lrwxrwxrwx 1 root root 46 Mar 30 10:09 privkey.pem -> ../../archive/www.panda.com/privkey1.pem
Apache 2.4 への設定は以下になります。
Listen 443 https SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog SSLSessionCache shmcb:/run/httpd/sslcache(512000) SSLSessionCacheTimeout 300 SSLRandomSeed startup file:/dev/urandom 256 SSLRandomSeed connect builtin SSLCryptoDevice builtin <VirtualHost _default_:443> ServerName www.panda.com:443 ServerAdmin panda@gmail.com ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA SSLCertificateFile /etc/letsencrypt/live/www.panda.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.panda.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/www.panda.com/chain.pem <Files ~ ".(cgi|shtml|phtml|php3?)$"> SSLOptions +StdEnvVars </Files> <Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost>
# service httpd configtest でsyntax ok でした。 # systemctl restert httpd でApacheを再起動して
https://www.panda.com でアクセスしても接続出来ないのですが、原因と対策方法がわからないのでどなたかご教示お願いします。
デベロッパーツールに表示されるエラーを追記しました。
This page is not secure (broken HTTPS). Certificate - Subject Alternative Name missing The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address. View certificate Certificate - missing This site is missing a valid, trusted certificate (net::ERR_CERT_AUTHORITY_INVALID). View certificate Connection - secure connection settings The connection to this site is encrypted and authenticated using TLS 1.2, ECDHE_RSA, and AES_128_GCM. Resources - all served securely All resources on this page are served securely.
追記 上の「View certificate」をクリックすると以下の表示が出ました。
このCAルート証明書は信頼されていません。信頼を有効にするにはこの証明書を信頼されたルート証明書機関のストアにインストールしてください。
なにをすればいいのか教えていただけないでしょうか?
回答2件
あなたの回答
tips
プレビュー