-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
broke out the certificate generation to be its own script, added reac…
…tivity to the copy text button, also the button now toasts with a success explaining the text copied
- Loading branch information
Showing
4 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# Uses mkcert to generate self-signed SSL/TLS certificates to allow Traefik to manage HTTPS | ||
# connections for a local deployment for Rosalution. Automatically installs the generated certificate | ||
# with the Chrome browser trust to let the browser know the certificate is valid and secure when | ||
# accessing local.rosalutin.cgds/rosalution. | ||
|
||
# Also creates the certificate directory path, default is ./etc/.certificates | ||
|
||
# ./generate-ssl-certs.sh <hostname> <certificate path> | ||
# ./generate-ssl-certs.sh local.rosalution.cgds ./etc/.certificates | ||
|
||
|
||
HOSTNAME=$1 | ||
CERT_PATH=$2 | ||
|
||
mkdir "$CERT_PATH" | ||
|
||
mkcert -cert-file "$CERT_PATH"/local-deployment-cert.pem -key-file "$CERT_PATH"/local-deployment-key.pem "$HOSTNAME" | ||
mkcert -install |
This file contains 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
This file contains 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
This file contains 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