Created a site dev.mylinkedthings.com so we get that included in certificate
Modified /var/sub/code2/.htaccess
Above line
"RewriteRule "(^|/)." - [F]"
add
-
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:
- Delete the cert I had:
-
sudo ~/letsencrypt/letsencrypt-auto delete -d kieran.metcarob.com
-
Run the same command as above to generate new cert (but I removed unneeded domain)
-
Run my renew script to make sure java cert was setup and servers restarted.