This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eu | |
| org=Funnelflux | |
| domain=edge-cloudruns.funnelflux.pro | |
| sudo trust anchor --remove ca.crt || true | |
| openssl genpkey -algorithm RSA -out ca.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eu | |
| org=Funnelflux | |
| domain=edge-cloudruns.funnelflux.pro | |
| sudo trust anchor --remove ca.crt || true | |
| openssl ecparam -genkey -name prime256v1 -out ca.key | |
| openssl req -x509 -new -nodes -key ca.key -days 3650 -out ca.crt -subj "/CN=${domain}/O=${org}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Read Password | |
| export ENV_USER=<username> | |
| echo -n Password: | |
| read -s PASSWORD | |
| export ENV_PASS=$PASSWORD |