mk-ssl-cert
· 305 B · Text
Raw
#!/bin/bash
set -euo pipefail
source .env
SSL_FQDN=${SSL_DOMAIN:?Insert hostname this certificate is for}
SSL_COMMON_NAME=${SSL_INPUT:?Insert common name for this certificate}
printf "Creating self-signed SSL certificate...\n"
printf "Updating system's trusted certificates...\n"
update-ca-certificates
| 1 | #!/bin/bash |
| 2 | |
| 3 | set -euo pipefail |
| 4 | |
| 5 | source .env |
| 6 | SSL_FQDN=${SSL_DOMAIN:?Insert hostname this certificate is for} |
| 7 | SSL_COMMON_NAME=${SSL_INPUT:?Insert common name for this certificate} |
| 8 | |
| 9 | printf "Creating self-signed SSL certificate...\n" |
| 10 | printf "Updating system's trusted certificates...\n" |
| 11 | update-ca-certificates |