2016-10-27 21 views
0

certbot-autoを使用して、自分のドメイン名に証明書httpsを生成しています。証明書は更新される予定ではありませんが、ドライランの更新をシミュレートします

/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6 
    DeprecationWarning 
Saving debug log to /var/log/letsencrypt/letsencrypt.log 

------------------------------------------------------------------------------- 
Processing /etc/letsencrypt/renewal/example.asia.conf 
------------------------------------------------------------------------------- 
Cert not due for renewal, but simulating renewal for dry run 
Starting new HTTPS connection (1): acme-staging.api.letsencrypt.org 
Renewing an existing certificate 
Performing the following challenges: 
tls-sni-01 challenge for example.asia 
tls-sni-01 challenge for www.example.asia 
Waiting for verification... 
Cleaning up challenges 
Generating key (2048 bits): /etc/letsencrypt/keys/0020_key-certbot.pem 
Creating CSR: /etc/letsencrypt/csr/0020_csr-certbot.pem 
** DRY RUN: simulating 'certbot renew' close to cert expiry 
**   (The test certificates below have not been saved.) 

Congratulations, all renewals succeeded. The following certs have been renewed: 
    /etc/letsencrypt/live/example.asia/fullchain.pem (success) 
** DRY RUN: simulating 'certbot renew' close to cert expiry 
**   (The test certificates above have not been saved.) 

してください:私はそれは大丈夫だが、私は、証明書の使用コマンドに

sudo ./certbot-auto renew --dry-run 

を更新するとき、それは以下のような証明書とショーのエラーメッセージを更新することはできません

sudo ./certbot-auto 

このようなコマンドを使用します助けてください

+0

エラーは何ですか? '--dry-run'は、更新をシミュレートすることです(実際には証明書を更新しません)。昨日証明書を更新したようです(水曜日、2016年10月26日02:49:00 UTC)、もう3ヶ月間は有効期限切れになりません。証明書を更新するには、 '--dry-run'オプションを使用しないでください。 –

+0

更新のために使用するコマンドは何ですか?私に教えてください –

+0

@AnandBhat、申し訳ありませんが、期限切れの3ヶ月前に証明書を更新できますか?私はこのコマンドを使うことができます。sudo ./certbot-auto renew --quietを更新する?大丈夫ですか? –

答えて

2

あなたの質問で実行したコマンドsudo ./certbot-auto renew --dry-runは、テスト更新に使用されています。あなたのログが示すように、すべてが順調に進み、テストは成功しました。

証明書を更新する場合は、sudo ./certbot-auto renew --quietを実行してください。証明書が30日以内に期限切れになるか、期限切れになったときに更新することができます。

詳細は、Certbot documentationおよびCertbot userguideに記載されています。

+0

ありがとうございました! ./certbot-auto更新 - 私のために働いていない。私はsudoを使用します./certbot-auto renew --force-renewはokです。しかし、私はcrontab -e * 15 * */certbot-autoを使用して更新すると、次のようなエラーが発生します:RedHatベースのOSのブートストラップ依存関係... yumは/ usr/bin/yumです 使用するCertbotでは、EPELリポジトリのパッケージをインストールする必要があります。 このリポジトリを有効にして、Certbotを再度実行してください。もし知っている解決策が私を助けてください –

関連する問題