Website hosting - letesencrypt

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

Created a site dev.mylinkedthings.com so we get that included in certificate

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

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

Enable code2 and download_mylinkedthings.com to non-ssl mode
service apache2 restart

apt-get install git
git clone https://github.com/letsencrypt/letsencrypt.git letsencrypt
cd letsencrypt

sudo ./letsencrypt-auto certonly --webroot -w /var/sub/dev_mylinkedthings -d dev.mylinkedthings.com -w /var/sub/gosecure_code2 -d code2.metcarob.com -w /var/sub/kieran -d kieran.metcarob.com -w /var/sub/stpeter -d www.stpeter.co.uk -w /var/sub/mylinkedthings -d mylinkedthings.com -d mylinkedthings.co.uk -w /var/sub/gosecure_download_mylinkedthings -d download.mylinkedthings.com -w /var/sub/dev_mylinkedthings -d dev.mylinkedthings.com -w /var/sub/gosecure_maven_repo -d mvn.metcarob.com -w /var/sub/gosecure_maven_snapshots_repo -d mvnsnap.metcarob.com

sudo ./letsencrypt-auto renew

/var/sub/gosecure_download_mylinkedthings
/var/sub/gosecure_code2

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 kieran.metcarob.com
  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