Keycloak 17 & FileMaker: Installation & Configuration Tutorial Part 2: Let’s Encrypt SSL Certificate

Introduction

Installing Certbot And Obtaining A SSL Certificate

sudo snap install coresudo snap refresh coresudo snap install --classic certbotsudo ln -s /snap/bin/certbot /usr/bin/certbotsudo shutdown -r now

Configuring The Firewall

sudo ufw allow sshsudo ufw allow 80/tcpsudo ufw allow 8443/tcpsudo ufw enable

Obtaining A SSL Certificate

sudo certbot certonly --standalone --preferred-challenges http -d keycloak.mydomain.com --dry-run
sudo ufw deny 80/tcp

Renewing The SSL Certificate Automatically

sudo systemctl list-units --type timer
sudo systemctl enable snap.certbot.renew.timer
sudo systemctl status snap.certbot.renew.timer
cd /etc/letsencrypt/renewal-hooks/pre
sudo nano pre-hook.sh
#!/bin/bash
# Open port 80
ufw allow 80/tcp
sudo chmod +x pre-hook.sh
cd /etc/letsencrypt/renewal-hooks/post
sudo nano post-hook.sh
#!/bin/bash
# Close port 80
ufw deny 80/tcp
sudo chmod +x post-hook.sh
sudo certbot renew --dry-run

Summary

--

--

--

FileMaker Developers; Keycloak Enthusiasts; Data Magicians

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Monitoring Azure AKS applications using the Grafana Observability stack

Solution to OST2 Binary Bomb Lab.

Python’s Way of Handling Function Arguments

Types of Dimension Tables in a Data Warehouse

Introduction to Flaky Tests by Example

Python Flask Tutorial

Beginner’s Guide to Flutter : 2.2 Building Interactive UI (StatefulWidgets)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sounds Essential

Sounds Essential

FileMaker Developers; Keycloak Enthusiasts; Data Magicians

More from Medium

Keycloak 17 & FileMaker: Installation & Configuration Tutorial Part 1: Ubuntu & MySQL

Golang Authentication Rest Api’s with MongoDB and JSON-web-token (JWT)

Recovering corrupted RabbitMQ data by reversing its storage protocol (part 2)

Keycloak, clients and roles: a tutorial