Website hosting - letesencrypt

Submitted by code_admin on Wed, 07/25/2018 - 10:17

Created a site so we get that included in certificate

Modified /var/sub/code2/.htaccess
Above line
"RewriteRule "(^|/)." - [F]"

  1. RewriteRule "^.well-known/acme-challenge" - [L]

Enable code2 and to non-ssl mode
service apache2 restart

apt-get install git
git clone letsencrypt
cd letsencrypt

sudo ./letsencrypt-auto certonly --webroot -w /var/sub/dev_mylinkedthings -d -w /var/sub/gosecure_code2 -d -w /var/sub/kieran -d -w /var/sub/stpeter -d -w /var/sub/mylinkedthings -d -d -w /var/sub/gosecure_download_mylinkedthings -d -w /var/sub/dev_mylinkedthings -d -w /var/sub/gosecure_maven_repo -d -w /var/sub/gosecure_maven_snapshots_repo -d

sudo ./letsencrypt-auto renew


NOTE: 17 June 2018 I redid this process removing the kieran domain.
The process was:

  1. Delete the cert I had:
  1. sudo ~/letsencrypt/letsencrypt-auto delete -d
  1. Run the same command as above to generate new cert (but I removed unneeded domain)

  2. Run my renew script to make sure java cert was setup and servers restarted.

RJM Article Type
Work Notes