Skip to content

Commit

Permalink
ignore changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1majom committed Sep 27, 2024
1 parent dbd7f6d commit 919b4fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ logs/
.vscode/*
topo.yaml
__pycache__/*
*.pcap
*.pcapng
pcaps/*
ssl/*
topo.yaml
Cargo.lock
topo copy 2.yaml
measurements/
test-gcp-type-beat.json
dev/cert2
topo.json
18 changes: 18 additions & 0 deletions dev/cert2
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

0 comments on commit 919b4fe

Please sign in to comment.