Hey yow
first, we login has root. and enable mod_ssl
a2enmod ssl
service apache2 restart
Next, we can install python2.7-dev and Git
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted" | sudo tee -a /etc/apt/sources.list.d/precise-updates.list
sudo apt-get update
sudo apt-get install python2.7-dev git
first, we login has root. and enable mod_ssl
a2enmod ssl
service apache2 restart
Next, we can install python2.7-dev and Git
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted" | sudo tee -a /etc/apt/sources.list.d/precise-updates.list
sudo apt-get update
sudo apt-get install python2.7-dev git
we can installed the letsencrypt client:
git clone --branch 0.30.x https://github.com/letsencrypt/letsencrypt
cd letsencrypt
we can shut down Apache – there is probably a better way, but on a low-traffic test server/domain, that’s entirely okay for me. I then requested a new certificate and started Apache up again.
service apache2 stop
./letsencrypt-auto certonly --no-self-upgrade --standalone -d example.com -d www.example.com
service apache2 start
Don't forget to add --no-self-upgrade to your renew cron job.
Now we went into the config file of virtual host and changed things around a bit. I am sure that it is frowned upon to put two VirtualHost directives with two different ports into one config file,
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/example.com/fullchain.pem
One more apache restart
service apache2 restart
Komentar
Posting Komentar