Skip to content

Letsencrypt wildcard with Nginx (Or HaProxy) and Arvan Cloud

Notifications You must be signed in to change notification settings

AliKhadivi/arvan-ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Letsencrypt wildcard with Certbot and ArvanCloud dns provider

Install and configuration

Requirements:

  • Python
  • Certbot

Install Certbot:

sudo snap install certbot --classic

Install python:

sudo apt install python3

Configure

Copy .env

cp env.example .env

Notice: 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 <-

Usage

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.com

Check Certificate’s Expiration Date:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates

Cron:

10 0 * * * certbot renew

About

Letsencrypt wildcard with Nginx (Or HaProxy) and Arvan Cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages