Last active
July 26, 2025 08:23
-
-
Save aKamrani/6434ea6a37f4a5936bb9737116c05674 to your computer and use it in GitHub Desktop.
LetsEncrpyt-SSL-Automatic-certbot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 🙏 Descriptions goes on comments 🙏 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Automatic LetsEncrpyt SSL (via certbot)
1-Report Checking Letsencrypt Access via certbot
script:
2-Gather SSL via certbot
Bash commands
For single subdomain:
or for wildcard:
3-Renew Certbot SSLs
At crontab of root user set:
script:
#!/bin/bash systemctl stop nginx certbot renew systemctl restart nginx