• This repository has been archived on 16/Jan/2020
  • Stars
    star
    351
  • Rank 120,906 (Top 3 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(NO LONGER MAINTAINED) | Bash script to generate and install Let's Encrypt certificate for your websites on your ServerPilot account (Free or Paid Plan)

Serverpilot Let's Encrypt Ubuntu 14.04 Ubuntu 16.04Ubuntu 18.04

Bash script to generate and install Let's Encrypt certificate for your websites on your free/paid ServerPilot account. Currently, the only easy way to add SSL to your ServerPilot-powered websites is by subscribing to the paid plan.

How to install

  • ssh to your server, sudo su to act as root
  • Copy sple.sh to your /usr/local/bin folder
    cd /usr/local/bin && wget https://raw.githubusercontent.com/lesaff/serverpilot-letsencrypt/master/sple.sh
    
  • Run sudo chmod +x sple.sh to make it executable

How to use

  • Run sple.sh anywhere from your console as root
  • Follow the on-screen instructions

Why root?

This script updates/create script in the /etc/nginx-sp that requires root access

IF things go wrong

  • Check /var/log/letsencrypt for detailed error messages
  • ssh to your sp server as root
    cd /etc/nginx-sp/vhosts.d
  • List all the ssl config files
    ls *ssl*
  • Delete the <appname>.ssl.conf that is causing problem

Restart nginx sudo service nginx-sp restart

Schedule auto renewal

Add the following to your crontab (crontab -e)

For Ubuntu 14.04

0 */12 * * * /usr/local/bin/certbot-auto renew --quiet --no-self-upgrade --post-hook "service nginx-sp reload"

For Ubuntu 16.04

0 */12 * * * letsencrypt renew && service nginx-sp reload

For Ubuntu 18.04

0 */12 * * * letsencrypt renew && service nginx-sp reload

Notes

  • This script assumes that you did not change your default ServerPilot installation folder
  • When entering your domain names, please list the primary root domain name first
  • To force HTTPS on your website, please follow instructions here
  • To redirect www to non-www or non-www to www on your website, please follow instructions here
  • Obey/observe the rate limits. Read the full documentation on the Let's Encrypt website for more information.

More Repositories

1

statamic2-suggestmodes

A bunch of useful SuggestMode addons for Statamic v2.x (List of Countries, States/Provinces, Collections)
PHP
15
star
2

statamic-sections

Add accordion or tabs interface to your fieldset sections
JavaScript
10
star
3

statamic-colorpicker

Colorpicker field type for Statamic V2.x
JavaScript
10
star
4

statamic-cachemanager

Cache Manager Widget for Statamic V2.x
PHP
10
star
5

ProcessWire-Sassify

Automatically compile Sass/SCSS/Compass in your ProcessWire templates
PHP
6
star
6

uikit-docs

Searchable UIkit Documentation
6
star
7

multi-env-wp-config

This modified wp-config.php file allows you to run your WordPress installation in a multiple environment (local, development, production etc).
PHP
6
star
8

statamic-useragent

User Agent addon for Statamic V2.x
PHP
4
star
9

processwire-manifest

Manifest is a ProcessWire module that bridges between Twig and Webpack.
PHP
4
star
10

statamicv2-redactorplugins

Add Redactor plugins to Statamic v2.x
JavaScript
4
star
11

ProcessWireValetDriver

Laravel Valet driver for ProcessWire CMS/CMF
PHP
4
star
12

statamic-eventbrite

Eventbrite addon for Statamic
PHP
4
star
13

couchcms-multi-env

Multi environment configuration file for CouchCMS
PHP
3
star
14

statamic-locale

Localization addon for Statamic v1.x
PHP
3
star
15

statamic-rssfeed

RSS Feed Widget for Statamic V2.x
PHP
3
star
16

statamic-redirect_to

Statamic Addon to automatically redirect page to the first child
PHP
2
star
17

statamic-data_uri

Generate Base64 Data URI from your variable or hardcoded image path.
PHP
2
star
18

statamic-date_calc

Date/Time Calculation Add-on for Statamic
PHP
2
star
19

laravel-serverpilot

ServerPilot PHP API Wrapper for Laravel 5
PHP
2
star
20

statamic-predis

Enable Redis on your Statamic V2.x. This is required if you want to use redis for your session/cache storage
1
star
21

statamic-imageinfo

PHP
1
star
22

statamic-browserinfo

Get browser user agent information
PHP
1
star
23

statamic-cpbar-dropdown

Convert CP bar nav to dropdown to allow more addonz
PHP
1
star
24

statamic-vanity

Statamic CP interface for vanity url redirects
PHP
1
star
25

statamicv2-redirecttochild

Automatically redirects page to its first child
PHP
1
star