malblack
By:
malblack

ServerPilot - Let's Encrypt

March 9, 2017 871 views
Apache Let's Encrypt Nginx Control Panels Ubuntu 16.04

hello,
I've just set a droplet up on Ubuntu 16.04 64bit and setup ServerPilot free version to control the server, I managed to set the APP up which was fairly straightforward, I've got the app running Magento 2 and another app running WordPress on two separate testing domains..

I'd like to use Let's encrypt for the SSL and install them myself on the server to the domains, which when I've set a droplet up before it was fairly straight forward following a couple of tutorials on digital ocean.

Problem is I can't work out the structure from how server pilot has set the server up what commands to use to set the SSL certificates up using Let's Encrypt on the server.

I seem to have a folders:

/etc/apache-sp/
/etc/nginx-sp/

and the apps are stored here:

/srv/users/serverpilot/apps/

If anyone has manage to do this without paying for the upgrade on Server Pilot It would be much appreciated to know how, as from what I have read on their site is they use Let's Encrypt for managing the SSL Certs

Regards

Mal

4 Answers
Zonax7100 March 9, 2017
Accepted Answer
  • nice one i shall test it later

  • This worked, for some strange reason it might have been me messing with the server or Magento I'd installed under http and a caching issue ??

    But as I'd created the site, installed Magento before installing and running this script, the https:// didn't work correctly and Magento kept serving http links even though it said the SSL cert was installed correctly....

    So I just destroyed the droplet, created another one, linked SP created a domain installed and run the script and created the SSL cert, then installed Magento 2 worked like a charm :-)

"as from what I have read on their site is they use Let's Encrypt for managing the SSL Certs".

This is true, as long as you pay 10$ per month.

If you need to do it yourself, then it's way more complicated than that.
I managed to do this when LE first came out in public beta. I since then destroyed the server, and paid 10$ to SP to do this for me. There was so much to setup and the worst part, the update. And also adding new ssl certs was not just one click.

I already saved the costs lots of times by paying them 10$ to do the hard work for me.

  • @malblack I'm sorry I can't help you with SP, since I've never used them.

    @Zonax7100 A lot has changed since LE came out. Now there is automatic install on Nginx and Apache (unless you have special configuration), but it has also become very easy to install, maintain and update. Again, I have no idea if the structure of SP makes this difficult.

not to worry I only needed to use it for testing hence the reason I don't want to pay the 10$ as the droplet will be destroyed once I've finished...

ServerPilot already offers this feature with its paid plan as mentioned above but if you aren't willing to pay $10 per month for some reason, then you can use my written bash script to install and enable the auto-renewal of Let's Encrypt on ServerPilot-configured servers. Here is the link:

https://github.com/rehmatworks/serverpilot-letsencrypt

Usage Example:

rwssl install yourwebsite.com yourwebsite main

This command will install the SSL on the domain 'yourwebsite.com' assuming that the app name in ServerPilot is 'yourwebsite' and you are installing the SSL on the main domain (last flag).

Have another answer? Share your knowledge.