Install Let's Encrypt SSL manually on Run Cloud

I’m running my WordPress site via service and in the free account, there’s no automatic option for Let’s Encrypt Integration. How can I manually install the Let’s Encrypt?

I tried with the certbot but it affects the Nginx configuration.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You may use in order to install Let’s Encrypt SSL certs on both paid and free plans of RunCloud.

Disclaimer: I’m the author of this script.

This comment has been deleted

Runcloud support Let’s Encrypt directly as part of their Pro plan. As Runcloud manages the Nginx instance on your server, certbot’s Nginx integration is unlikely to work with it. Though, it may be possible to create a certificate in certonly mode and then upload it to Runcloud manually.

You will need to make one change to the Nginx config first, but luckily they do provide a way to include a custom directive in the /etc/nginx-rc/extra.d/ directory. Adding one that allows access to .well-known will allow certbot to respond to the Let’s Encrypt challenge to verify your domain. Like so:

    location ~ /.well-known {
        allow all;

Next, run certbot in certonly mode replacing the webroot path with the one used by Runcloud (e.g. /home/runcloud/webapps/runcloud-blog;):

  1. sudo certbot certonly --webroot --webroot-path=/var/www/html -d

After running through the prompts, all the needed certificate file will be available in /etc/letsencrypt/live/ You will then need to download those files and re-upload them through Runcloud’s interface, allowing them to configure SSL for your domain in Nginx.

The major drawback to this approach is that you will not be able to use cerbot’s auto renewal functionality.