Code Monkey home page Code Monkey logo

runcloud-letsencrypt's Introduction

Buy Me A Coffee

RunCloud Let's Encrypt Automation

Install Let's Encrypt SSL on RunCloud.io servers

Installation

pip install rcssl

Usage

usage: PROG [-h] [-i {all}] [-u {all}] [-r] [-a {disable,enable}]

optional arguments:
  -h, --help            show this help message and exit
  -i, --install
                        Install SSL certificate on an app or on all available
                        apps. Provide the target app name or type all to
                        install SSL on all apps.
  -u, --uninstall
                        Uninstall SSL certificate from an app or from all
                        available apps.
  -r, --renew           Renew all installed SSl certificates.
  -a {disable,enable}, --autopilot {disable,enable}
                        Enable or disable auto-pilot mode.

Examples

To install SSL on all available apps:

rcssl -i all

And to install SSL on a specific app:

rcssl -i appname

Autopilot mode automatically retrieves and installs SSL certificates on your new apps without needing you to sign in and run the install command.

To enable autopilot mode:

rcssl -a enable

and to disable autopilot mode

rcssl -a disable

To uninstall SSL certificate from all apps:

rcssl -u all

And to uninstall SSL certificate from a specific app:

rcssl -u appname

runcloud-letsencrypt's People

Contributors

itsrimzz1 avatar rehmatworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

runcloud-letsencrypt's Issues

2 sites on one server unsecure connection

I have two sites on one server. The SSL's install properly on both web apps, yet when I try to connect to one of the websites I get an "unsecure connection" message from Chrome, or my antivirus blocks the page. The other site works perfectly with https.

Auto-renew?

Does this handle auto-renewing Letsencrypt SSL? I did not find relevant codes.

problem with ubuntu 20.04

My Os version : ubuntu 20.04
rcssl -i Appname

error: Certbot libraries cannot be installed. Aborting!

getting issue to install : sudo apt-get update && yes | sudo apt-get install software-properties-common && yes | sudo add-apt-repository ppa:certbot/certbot && yes | sudo apt-get update && yes | sudo apt-get install certbot

Ign:1 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:4 https://deb.nodesource.com/node_12.x focal InRelease
Err:5 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release
404 Not Found [IP: 91.189.95.83 80]
Hit:6 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu focal InRelease
Hit:7 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu focal InRelease
Get:8 http://mirrors.digitalocean.com/ubuntu focal InRelease [265 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:10 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease
Hit:11 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease
Hit:12 https://release.runcloud.io focal InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Problem with Runcloud Update

when try to install to webappss

error : local variable 'domain' referenced before assignment

please how to solve this

Unable to Issue Certificate when the domain is behind cloudflare

First of all, its an amazing work, thank you!

Getting the below error when the domain is behind cloudflare.

# rcssl -i limrastorage
Certbot is not installed, installing the libraries...
Attempting to install SSL on limrastorage
1 valid domains found. Attempting to obtain SSL certificate from Let's Encrypt
Error: SSL certificate cannot be obtained for ***. The most obvious reasons are that any of your domains aren't pointed to your server or SSL limit is reached.

As per the cloudflare documentation https://support.cloudflare.com/hc/en-us/articles/214820528-How-to-Validate-a-Let-s-Encrypt-Certificate-on-a-Site-Already-Active-on-Cloudflare Let's encrypt needs to be configured using HTTP Validation, can I switch to HTTP validation using this script. Please advise. Thanks in advance.

Can't install certificate on any webapp

Hi,

I just created a webapp through runcloud and linked my domain to it using standard nameservers of Digital Ocean.

After installing your script through Terminal using root, I proceeded to run

rcssl -i all

I am getting the following error:

SSL certificate cannot be obtained for app-element. The most obvious reasons are that any of your domains aren't pointed to your server or SSL limit is reached.

I tried deleting all the content inside /etc/letsencrypt and redoing the operation, as well as installing a certificate for only my app name (using the appname as it is shown in Runcloud). To no avail...

Could that be that Runcloud now forbids installing letsencrypt manually with your script ?

Thanks in advance for your help!

rcssl fails even though certificate was created

Hi, thanks for a great script. I've used it previously without any issues but after changing my domain I am unable to get it working.

After running rcssl -u all to get rid of the old one and then rcssl -i all it finds my domains but I get the following error message: Error: SSL certificate cannot be obtained for [mydomain]. The most obvious reasons are that any of your domains aren't pointed to your server or SSL limit is reached.

DNS works, the limit is not reached and when debugging this by looking at let's encrypt logs at /var/log/letsencrypt I can see that the certificate was created successfully. Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/[mydomain]/fullchain.pem

Any idea what to do?

Thanks

Certificate is linked to a wrong domain

Hi, thank you for making a very helpful script.

I've got 4 domains in Runcloud, SSL worked fine but when I created the 5th domains, at first I couldn't install SSL Error: SSL certificate cannot be obtained for [mydomain]. The most obvious reasons are that any of your domains aren't pointed to your server or SSL limit is reached.

Then, I went to check http://www.domain5.com, it redirected to https://domain5.com/en/home-en/
Firefox says

Warning: Potential Security Risk Ahead
Websites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for domain5.com. The certificate is only valid for the following names: domain1.com, www.domain1.com

Error code: SSL_ERROR_BAD_CERT_DOMAIN

The certificate of domain5.com is linked to domain1.com instead, even though I couldn't install SSL yet

After that, I removed www.domain5.com from Runcloud Domain List, left only domain5.com. Then I'm able to install SSL

I went to https://domain5.com, Firefox is still says

Warning: Potential Security Risk Ahead
Websites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for domain5.com. The certificate is only valid for the following names: domain1.com, www.domain1.com

Error code: SSL_ERROR_BAD_CERT_DOMAIN

The certificate of domain5.com is linked to a wrong domain, domain1.com.

I tried to remove domain1 certificate by run rcssl -u domain1 and got an error Error: Command 'certbot delete --cert-name www.domain1.com' returned non-zero exit status 1

Please help me to resolve this issue. Thank you very much.

(Firefox's cookies and cache have been cleared)

App name must be domain name?

image

root@tjnz-runcloud:/# rcssl -i tjnz-production
Attempting to install SSL on tjnz-production
1 valid domains found. Attempting to obtain SSL certificate from Let's Encrypt
Error: SSL certificate cannot be obtained for tjnz-production. The most obvious reasons are that any of your domains aren't pointed to your server or SSL limit is reached.
root@tjnz-runcloud:/#

ssl directive is deprecated

Hello,
I got this warning when I do nginx-rc -t
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.