EDIT: sudo nano /lib/systemd/system/certbot.timer OnCalendar=*-*-* 02:00:00 (edit this line) sudo systemctl daemon-reload sudo systemctl restart certbot.timer
LIST: systemctl list-timers certbot.timer
Helper for developer
EDIT: sudo nano /lib/systemd/system/certbot.timer OnCalendar=*-*-* 02:00:00 (edit this line) sudo systemctl daemon-reload sudo systemctl restart certbot.timer
LIST: systemctl list-timers certbot.timer
certbot certificates
systemctl stop certbot.timer systemctl disable certbot.timer And to be sure that in case a new debian certbot update doesn't activatecertbot.timeragain you could mask thecertbot.timer. systemctl mask certbot.timer https://community.letsencrypt.org/t/certbot-creates-a-task-automatically-can-it-be-prevented/182730/2
systemctl list-timers
crontab -e //--- At 03:00 on Sunday 0 3 * * 0 /usr/bin/certbot --apache renew >> /var/log/certbot-renew.log
sudo update-ca-certificates https://superuser.com/questions/437330/how-do-you-add-a-certificate-authority-ca-to-ubuntu
PHP.INI curl.cainfo =/usr/local/share/ca-certificates/mycustom/cacert.pem download cacert.pem http://curl.haxx.se/ca/cacert.pem tutorial https://cheapsslsecurity.com/blog/ssl-certificate-problem-unable-to-get-local-issuer-certificate/
1. New
certbot certonly --manual --preferred-challenges=dns --email admin@example.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.example.com
2. Adding TXT record
_acme-challenge TXT "xxxxxxxxxxxxxxxxxxxxxx"
3. Your cert will expire on 2022-02-28.
4. Renew:
certbot certonly --manual -d '*.example.com'
4.1 New if Renew is failed (if 4.Renew failed then: Retry the Certification Process)
certbot certonly --manual --preferred-challenges dns -d example.com
5. Lookup (on windows)
nslookup -type=TXT _acme-challenge.domain.com
or
https://dnschecker.org/#TXT/_acme-challenge.domain.com
4.1. Update DNS with TXT value
4.2. Before continuing, verify the record is deployed. Press Enter to Continue
4.3. Restart apache2 or wait 15min
4.4 Your cert will expire on
2025-12-22
2025-09-23(new server)
2025-07-19
2025-04-19
2025-01-24
2024-11-10
2024-08-19
2024-05-21
2024-02-25
2023-11-27
2023-08-28
2023-05-26,
2023-02-24,
2022-11-26,
2022-08-28,
2022-05-29
shop:
2024-10-07
2024-05-21
2024-02-25
2023-11-07
h:
2026-02-08
2025-11-08
2025-07-19
2025-04-25
2025-04-19 (err)
2025-01-24
2024-11-10
2024-05-21
https://bobcares.com/blog/certbot-wildcard-certificate-apache/
apache rewrite domain with wildcard:
RewriteEngine on
RewriteCond %{HTTP_HOST} (\w+.domain.lt)
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]
https://serverfault.com/questions/809437/rewrite-of-insecure-to-secure-domain-with-wildcard