- Python
- Certbot
sudo snap install certbot --classicsudo apt install python3Copy .env
cp env.example .envNotice: You need to get the api key from your ArvanCloud panel and put it in the .env file.
How to get api key? -> Persian Tutorial <-> English Tutorial <-
Command:
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook "$(realpath ./authenticator.sh)" --manual-cleanup-hook "$(realpath ./cleanup.sh)" --deploy-hook "$(realpath ./deploy.sh)" -d *.example.com -d example.comCheck Certificate’s Expiration Date:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -datesCron:
10 0 * * * certbot renew