Skip to content

Instantly share code, notes, and snippets.

View tbulubas's full-sized avatar
🏠
Working from home

TaroBaro tbulubas

🏠
Working from home
View GitHub Profile
@tbulubas
tbulubas / gist:2d829436558e09af87411db6c26aa722
Created November 8, 2021 07:38 — forked from yuezhu/gist:47b15b4b8e944221861ccf7d7f5868f5
Generate self-signed certificate for HAProxy
# Generate a unique private key (KEY)
sudo openssl genrsa -out mydomain.key 2048
# Generating a Certificate Signing Request (CSR)
sudo openssl req -new -key mydomain.key -out mydomain.csr
# Creating a Self-Signed Certificate (CRT)
openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
# Append KEY and CRT to mydomain.pem