Coder Social home page Coder Social logo

lightsail-ssl's Introduction

lightsail-ssl

Simple script for setting up Let's Encrypt SSL on AWS Lightsail instances

Requirements

  • Fresh AWS Lightsail Linux installation

  • This script was primary written for WordPress instances (Certified by Bitnami and Automattic)

Arguments

lightsail-ssl.sh [domain] [email]

  • [domain] FQDN domain name pointing to the instance where this script is run

  • [email] Email address where Let's Encrypt will send notifications when the SSL certificate is expiring

[domain] and [email] arguments are optional if they are not provided the script will ask for them.

Installation

Connect to your instance using SSH

Run the following command in the terminal. This will download the script and set up Let's Encrypt.

wget -O - https://raw.githubusercontent.com/suhajda3/lightsail-ssl/main/lightsail-ssl.sh | sudo bash

Functions

Functions - in order - that the script does:

  1. Update the Linux OS
  2. Install / update lego
  3. Request Let's Encrypt certificate
  4. Set up automatic Let's Encrypt certificate renewal
  5. Display WordPress login credentials

You can run the script as many times as you like to update your system.

Demo

My blog post Running WordPress on AWS describes in detail how to use this script.

Contributing

Feel free to open an issue (or even better, send a Pull Request) to contribute. Contributions are always welcomed! ๐Ÿ˜„

Buy Me A Coffee

Please consider donating. ๐Ÿ™

lightsail-ssl's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.