Skip to content

Commit 3eb089c

Browse files
committed
File cleaenup
1 parent f07d19f commit 3eb089c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/GENERATE_NEW_CACERT.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```bash
2+
mkdir -p ~/.deadlight
3+
4+
openssl genrsa -out ~/.deadlight/ca.key 4096
5+
openssl req -new -x509 -days 3650 \
6+
-key ~/.deadlight/ca.key \
7+
-out ~/.deadlight/ca.crt \
8+
-subj "/CN=deadlight CA/O=deadlight/C=US"
9+
10+
chmod 600 ~/.deadlight/ca.key
11+
chmod 644 ~/.deadlight/ca.crt
12+
Install it system-wide so curl and other tools trust it:
13+
14+
sudo cp ~/.deadlight/ca.crt /usr/local/share/ca-certificates/deadlight.crt
15+
sudo update-ca-certificates
16+
```

0 commit comments

Comments
 (0)