https://github.com/suhajda3/lightsail-ssl
Simple script for setting up Let's Encrypt SSL on AWS Lightsail instances
https://github.com/suhajda3/lightsail-ssl
acme aws bitnami letsencrypt lightsail ssl wordpress
Last synced: 11 months ago
JSON representation
Simple script for setting up Let's Encrypt SSL on AWS Lightsail instances
- Host: GitHub
- URL: https://github.com/suhajda3/lightsail-ssl
- Owner: suhajda3
- License: apache-2.0
- Created: 2021-07-07T15:36:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-11T22:02:54.000Z (over 4 years ago)
- Last Synced: 2025-04-10T05:57:57.065Z (about 1 year ago)
- Topics: acme, aws, bitnami, letsencrypt, lightsail, ssl, wordpress
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/go-acme/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](https://roadtoaws.com/2021/07/08/running-wordpress-on-aws-the-cheap-and-easy-way/) 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! 😄
Please consider donating. 🙏
