Skip to content

Instantly share code, notes, and snippets.

View bkintanar's full-sized avatar
🏡
Remotely working

Bertrand Kintanar bkintanar

🏡
Remotely working
View GitHub Profile
@bkintanar
bkintanar / ssh.sh
Created February 10, 2023 09:05 — forked from zircote/ssh.sh
Convert a AWS PEM into a ssh pub key
ssh-keygen -y -f private_key1.pem > public_key1.pub

Nginx SSL via Let's Encrypt and acme.sh

This guide is intended to walk you through installation of a valid SSL on your server for your site at example.com. This example is using root user, you may need to use sudo if you encounter problems such as write permissions.

Pre-requisites

  • Install acme.sh on your server. This will create a acme.sh folder in your home directory and more importantly create an everyday cron job to check and renew certificates if needed.
  • Install nginx server (different per distibution so just make sure you have it up and running)