Skip to content

Instantly share code, notes, and snippets.

View m-triassi's full-sized avatar

Massimo m-triassi

View GitHub Profile
@m-triassi
m-triassi / kasm_cert.sh
Last active September 15, 2024 00:51
Generate an SSL certificate for a KASM instance. Requires Certbot & Docker to be installed.
#!/usr/bin/env bash
# Leverages Docker containers to create a temporary signing server
# Obtain a SSL cert and then apply it to the service in question we're interested in
# Usage: ./kasm_cert.sh mydomain.test
mkdir -p /tmp/webroot
# Start an ephemeral nginx container