Webサーバーの設定

SSL証明書の失効

$ sudo certbot revoke –cert-path=/etc/letsencrypt/archive/domain-name.com/cert1.pem

 

SSL証明書の削除

$ sudo certbot delete -d domain-name.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which certificate(s) would you like to delete?
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
1: domain-name.com
2: domain-name.info
3: domain-name.co.jp
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel):1
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Deleted all files relating to certificate domain-name.com.
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
削除したいドメインの番号を選ぶ。
domain-name.comに関するすべてのファイルが削除される。

 

ファイルからの削除

「httpd-le-ssl.conf」ファイルからドメイン部分を削除する。

$ sudo vim /etc/httpd/conf/httpd-le-ssl.conf

 

ファイルのテスト

ファイルを変更したときにはテストする。

$ sudo service httpd configtest
success!

 

再起動

$ sudo systemctl restart httpd.service

 

参照元情報

CentOS 7 構築・運用・管理パーフェクトガイド
CentOS 7 構築・運用・管理
パーフェクトガイド