Last active
March 1, 2021 12:05
-
-
Save format37/e43c52ee7d3ba1d191df88f5f991a84f to your computer and use it in GitHub Desktop.
lamp letsencrypt
This file contains 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
## LAMP install | |
sudo apt install tasksel | |
sudo tasksel install lamp-server | |
## Enable the universe repository | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository universe | |
sudo apt-get update | |
## Install Certbot | |
sudo apt-get install certbot python3-certbot-apache | |
## Check, if yourdomain.com is available by http at the same ip, then: | |
## Either get and install your certificates... | |
sudo certbot --apache --domains www.yourdomain.com | |
## Copy cert to available path if u need: | |
#mkdir ~/cert | |
#sudo cp /etc/letsencrypt/live/www.yourdomain.com/fullchain.pem ~/cert/ | |
#sudo cp /etc/letsencrypt/live/www.scriptlab.net/privkey.pem ~/cert/ | |
#sudo chmod -R 777 /home/format37_gmail_com/cert/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IMPORTANT NOTES:
/etc/letsencrypt/live/www.domain.name/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/www.domain.name/privkey.pem
To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew all of
your certificates, run "certbot renew"
configuration directory at /etc/letsencrypt