Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cert not due for renewal, but simulating renewal for dry run

I'm using certbot-auto generate certificate https for my domain name. I use command like this

sudo ./certbot-auto

it's ok, but when i renew certificate use command

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

it can't renew certificate and show error message like below:

/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.)

Please help me

like image 470
Ma YongChhin Avatar asked Oct 27 '16 06:10

Ma YongChhin


1 Answers

The command you ran in your question sudo ./certbot-auto renew --dry-run is used test renewal. As your log indicates, everything went well and the test was successful.

When you wish to renew the certificate, running sudo ./certbot-auto renew --quiet will work. You can renew certificates when they expire in less than 30 days or have already expired.

More details can be found in the Certbot documentation and Certbot userguide.

like image 99
Anand Bhat Avatar answered Sep 30 '22 06:09

Anand Bhat