fix gen-tls-cert script
This commit is contained in:
parent
6aa65154f7
commit
6e4483c7fe
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
tmp=$(mktemp -d)
|
tmp=$(mktemp -d)
|
||||||
trap 'rm -rf -- "$keyfile"' EXIT
|
trap 'rm -rf -- "$tmp"' EXIT
|
||||||
|
|
||||||
# ref https://stackoverflow.com/questions/59738140/why-is-firefox-not-trusting-my-self-signed-certificate
|
# ref https://stackoverflow.com/questions/59738140/why-is-firefox-not-trusting-my-self-signed-certificate
|
||||||
openssl req -x509 -nodes \
|
openssl req -x509 -nodes \
|
||||||
|
|
@ -8,7 +8,7 @@ openssl req -x509 -nodes \
|
||||||
-keyout "$tmp/ca.key" \
|
-keyout "$tmp/ca.key" \
|
||||||
-days 365 \
|
-days 365 \
|
||||||
-out "$tmp/ca.cert" \
|
-out "$tmp/ca.cert" \
|
||||||
-subj '/CN=hd_root' \
|
-subj '/CN=hd_root'
|
||||||
|
|
||||||
rm secrets/tlskey.age
|
rm secrets/tlskey.age
|
||||||
openssl req -nodes \
|
openssl req -nodes \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue