Skip to content

Instantly share code, notes, and snippets.

@format37
Last active March 1, 2021 12:05
Show Gist options
  • Save format37/e43c52ee7d3ba1d191df88f5f991a84f to your computer and use it in GitHub Desktop.
Save format37/e43c52ee7d3ba1d191df88f5f991a84f to your computer and use it in GitHub Desktop.
lamp letsencrypt
## 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/
@format37
Copy link
Author

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    /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"
  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment