HI,
See *Section “HELP FORM” Below:
I thought I had set up certbot to auto-renew properly but my cert expired 11/4/19. I expected it to renew 30 days prior. I ran the dry run, see response below.
I am using a Beaglebone and have the following installation directory: /home/debian/letsencrypt
with the configuration files within: /home/debian/letsencrypt/conf
The log directory is: /home/debian/letsencrypt/log but is empty
I have the directory: /etc/letsencrypt with empty /renewal and /renewal-hooks diretories.
I have logs at: /var/log/letsencrypt
See *Section “LAST LOG” below
I believe I need to direct Letsencrypt to my home directory to fix this…how do I do this and keep my current installation at /home/debian/letsencrypt ?
My first post, tried to format for easy reading…hope it worked.
Thanks,
jbro
Here is my /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc. Renewal will only occur if expiration
# is within 30 days.
#
# Important Note! This cronjob will NOT be executed if you are
# running systemd as your init system. If you are running systemd,
# the cronjob.timer function takes precedence over this cronjob. For
# more details, see the systemd.timer manpage, or use systemctl show
# certbot.timer.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew
Here is my /usr/bin/certbot
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'certbot==0.28.0','console_scripts','certbot'
__requires__ = 'certbot==0.28.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('certbot==0.28.0', 'console_scripts', 'certbot')()
)
*Section: HELP FORM:
My domain is:
jeffbrownmusic.duckdns.org
I ran this command:
sudo certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)
No renewals were attempted.
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
My web server is (include version):
node.js v10.15.3
The operating system my web server runs on is (include version):
Debian Stretch
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
YES
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
NO
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
0.28.0
Section: LAST LOG:
letsencrypt.log.1 (truncated to 3 logs):
2019-11-03 09:13:11,371:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-03 09:13:11,399:DEBUG:certbot.main:Arguments: ['-q']
2019-11-03 09:13:11,412:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-03 09:13:11,572:DEBUG:certbot.log:Root logging level set at 30
2019-11-03 09:13:11,587:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-03 09:13:11,599:DEBUG:certbot.renewal:no renewal failures
2019-11-03 21:02:45,705:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-03 21:02:45,722:DEBUG:certbot.main:Arguments: ['-q']
2019-11-03 21:02:45,736:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-03 21:02:45,893:DEBUG:certbot.log:Root logging level set at 30
2019-11-03 21:02:45,908:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-03 21:02:45,920:DEBUG:certbot.renewal:no renewal failures
2019-11-04 09:25:11,199:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-04 09:25:11,217:DEBUG:certbot.main:Arguments: ['-q']
2019-11-04 09:25:11,230:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-04 09:25:11,386:DEBUG:certbot.log:Root logging level set at 30
2019-11-04 09:25:11,401:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-04 09:25:11,414:DEBUG:certbot.renewal:no renewal failures
2019-11-04 16:10:59,610:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-04 16:10:59,627:DEBUG:certbot.main:Arguments: ['-q']
2019-11-04 16:10:59,641:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-04 16:10:59,799:DEBUG:certbot.log:Root logging level set at 30
2019-11-04 16:10:59,814:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-04 16:10:59,826:DEBUG:certbot.renewal:no renewal failures
2019-11-05 00:48:11,335:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-05 00:48:11,352:DEBUG:certbot.main:Arguments: ['-q']
2019-11-05 00:48:11,365:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-05 00:48:11,521:DEBUG:certbot.log:Root logging level set at 30
2019-11-05 00:48:11,537:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-05 00:48:11,549:DEBUG:certbot.renewal:no renewal failures
2019-11-05 18:11:34,742:DEBUG:certbot.main:certbot version: 0.28.0
2019-11-05 18:11:34,759:DEBUG:certbot.main:Arguments: ['-q']
2019-11-05 18:11:34,772:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-11-05 18:11:34,933:DEBUG:certbot.log:Root logging level set at 30
2019-11-05 18:11:34,948:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-11-05 18:11:34,961:DEBUG:certbot.renewal:no renewal failures
2019-11-06 03:08:11,182:DEBUG:certbot.main:certbot version: 0.28.0... (repeats to 11/10/2019)