{"id":19310655,"url":"https://github.com/rehmatworks/serverpilot-letsencrypt","last_synced_at":"2025-09-01T19:36:22.176Z","repository":{"id":43466255,"uuid":"84224380","full_name":"rehmatworks/serverpilot-letsencrypt","owner":"rehmatworks","description":"Automate the installation of Let's Encrypt SSL on the free plan of ServerPilot","archived":false,"fork":false,"pushed_at":"2021-09-16T09:45:45.000Z","size":220,"stargazers_count":122,"open_issues_count":5,"forks_count":33,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-08-10T03:35:48.613Z","etag":null,"topics":["apache","certbot","cron","https","letsencrypt","nginx","pip","python","renewal","serverpilot","ssl"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rehmatworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://buymeacoffee.com/rehmat"]}},"created_at":"2017-03-07T16:57:06.000Z","updated_at":"2025-02-19T22:04:15.000Z","dependencies_parsed_at":"2022-09-14T17:10:50.348Z","dependency_job_id":null,"html_url":"https://github.com/rehmatworks/serverpilot-letsencrypt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rehmatworks/serverpilot-letsencrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fserverpilot-letsencrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fserverpilot-letsencrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fserverpilot-letsencrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fserverpilot-letsencrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehmatworks","download_url":"https://codeload.github.com/rehmatworks/serverpilot-letsencrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fserverpilot-letsencrypt/sbom","scorecard":{"id":769228,"data":{"date":"2025-08-18","repo":{"name":"github.com/rehmatworks/serverpilot-letsencrypt","commit":"6c7c8aa9fc60df0b3d63b3a016f128ddfb9a5f32"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T01:46:28.641Z","repository_id":43466255,"created_at":"2025-08-23T01:46:28.641Z","updated_at":"2025-08-23T01:46:28.641Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273181775,"owners_count":25059808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","certbot","cron","https","letsencrypt","nginx","pip","python","renewal","serverpilot","ssl"],"created_at":"2024-11-10T00:25:36.368Z","updated_at":"2025-09-01T19:36:22.130Z","avatar_url":"https://github.com/rehmatworks.png","language":"Python","funding_links":["https://buymeacoffee.com/rehmat"],"categories":[],"sub_categories":[],"readme":"# [Try a Free Control Panel](https://fastcp.org)\nI like ServerPilot a lot. How it configures the LAMP/LEMP stack and how it makes use of ACLs to give the secure access to individual users is really great. But I don't like a few things about it:\n\n1. It is entirely paid\n2. You need to give your server access away\n\nTo overcome these issues, I have come up with a free control panel. I have followed the best practices from ServerPilot in configuring NGINX, Apache, MySQL, and PHP as well as I have used a similary directory structure and I have made a similar use of ACLs. But it is entirely self-hosted. You can use my developed control panel to deploy and manage multiple PHP websites on a single server. It is entirely open source and free!!\n\n* [Try FastCP now](https://fastcp.org)\n* [View on GitHub](https://github.com/rehmatworks/fastcp)\n\n** If you like it, consider giving it a star. I'll try to update this ServerPilot Let's encrypt automation script too.**\n\n## ServerPilot Let's Encrypt (`rwssl`) v2.x\nThis Python utility allows you to automate the installation/uninstallation of SSL certificates from Let's Encrypt on ServerPilot servers. Both free servers (from old grand-fathered plan) and servers on premium plans are supported.\n\n![serverpilot-letsencrypt](https://raw.githubusercontent.com/rehmatworks/serverpilot-letsencrypt/master/rwssl.png \"ServerPilto Let's Encrypt\")\n\n## Getting Started\n\nFirst of all, sign in as root user (or with sudo privileges). Now remove the very old script if you are still using it:\n\n```bash\nrm /usr/local/bin/rwssl\n```\n\nAnd then install some needed packages:\n\n```bash\napt-get update  \u0026\u0026 \\\napt-get -y install python3-pip build-essential libssl-dev libffi-dev python3-dev\n```\n\nUninstall older version if exists:\n```bash\npip3 uninstall -y rwssl\n```\n\nAnd then install the latest version from PyPi:\n\n```bash\npip3 install rwssl==2.0.4\n```\n\nVerify that the installation worked. This should bring up the help menu for **rwssl**:\n\n```bash\nrwssl -h\n```\n\nThe alternate way to install **rwssl** is by cloning the repository:\n\n```bash\ncd ~/ \u0026\u0026 \\\ngit clone https://github.com/rehmatworks/serverpilot-letsencrypt  \u0026\u0026 \\\ncd serverpilot-letsencrypt \u0026\u0026 \\\npip3 install -r requirements.txt \u0026\u0026 \\\npython3 setup.py install\n```\n\nOnly Python 3.5 and up supported so you shoul install \u0026 use rwssl package using pip3 and Python 3.x.\n\n## Available Commands with Examples:\n\nOnce **rwssl** is installed, a command `rwssl` will become available in your terminal. You will have access to the following sub-commands in order to manage your server.\n\n**Update:** Please note that old commands aren't available anymore due to a recent major upgrade. Please check below table for new commands that come with rwssl. You can get help by typing `rwssl -h` as well.\n\n| Command | Details | Examples |\n| ------- | --- | -- |\n| getcert | Get letsencrypt cert for an app. | `rwssl getcert --app foo` |\n| getcerts | Get letsencrypt certs for all apps. | `rwssl getcerts` for all users apps or `rwssl getcerts --user john` for john's apps |\n| removecert | Uninstall SSL cert from an app. | `rwssl removecert --app foo` |\n| removecerts | Uninstall SSL certs for all apps. | `rwssl removecerts` for all users apps or `rwssl removecerts --user john` for john's apps |\n| forcessl | Force SSL certificate for an app. | `rwssl forcessl --app foo` |\n| unforcessl | Unforce SSL certificate for an app. | `rwssl unforcessl --app foo` |\n| forceall | Force HTTPs for all apps. | `rwssl forceall` for all users apps or `rwssl forceall --user john` for john's apps |\n| unforceall | Unforce HTTPs for all apps. | `rwssl unforceall` for all users apps or `rwssl unforceall --user john` for john's apps |\n\nYou can use `rwssl -h` command to get to the help page on above commands.\n\n## Uninstall\nTo uninstall rwssl completely, run:\n```bash\npip3 uninstall rwssl\n```\n\nAs a CRON job is added for SSL renewals by rwssl, you can remove the CRON file by running:\n\n```bash\nrm /etc/cron.weekly/rwssl-sslrenewals\n```\n\nMoreoever, a conf file `acme.conf` is created in conf directory of each app in vhosts.d. You should delete them as well. For example, if your app name is example, you should delete the conf file `/etc/nginx-sp/vhosts.d/example.d/acme.conf`. Repeat this step for each app where you used rwssl to get the SSL certificates.\n\nThat's all!\n\n## Changelog\n## [2.0.4] - 2020-07-19\nA minor upgrade that addresses renewal CRON issue and DNS-related bug.\n\n### Fixes\n- Fixed invalid DNS bug\n- Fixed renewal cron file generation\n\n## [2.0.0] - 2020-04-18\nA major upgrade that addresses all reported bugs including SSL renewals.\n\n### Changes\n- Custom path is used to store SSL certificates\n- Certificate is named after app name (Addresses missing cert path issue)\n- Improved vhost file parsing to get app details\n- Dropped support for Python 2.x (Only Python 3.x is supported)\n- Using Let's Encrypt staging server (via dry-run) for domain validation (To address quota issues)\n\n### Added\n- Using Jinja template engine to generate virtual host files from templates\n- Using a custom ACME verification location (To avoid initial verifications \u0026 renewal issues)\n- Using latest certbot Python package\n- ACME v2 protocol support\n- Added validation after vhost files are written (and changes are reverted if errors encountered)\n\n## Bugs \u0026 Suggestions\nFor security-related issues, please email me at **contact@rehmat.works** and for common bug reports / feature requests, use the issues section.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehmatworks%2Fserverpilot-letsencrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehmatworks%2Fserverpilot-letsencrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehmatworks%2Fserverpilot-letsencrypt/lists"}