forked from kixelated/moq-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 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
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,18 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
# Generate a new RSA key/cert for local development | ||
HOST="localhost" | ||
CRT="$HOST.crt" | ||
KEY="$HOST.key" | ||
|
||
# Install the system certificate if it's not already | ||
# NOTE: The ecdsa flag does nothing but I wish it did | ||
go run filippo.io/mkcert -ecdsa -install | ||
|
||
# Generate a new certificate for localhost | ||
# This fork of mkcert supports the -days flag. | ||
# TODO remove the -days flag when Chrome accepts self-signed certs. | ||
go run filippo.io/mkcert -ecdsa -days 10 -cert-file "$CRT" -key-file "$KEY" localhost 127.0.0.1 ::1 10.3.0.1 10.3.0.2 10.3.0.3 10.3.0.4 10.3.0.5 10.3.0.6 |