blob: 4da6779ebb1f44792ee73ce9c2ec12553bba2b4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# generate self-signed CA certificate
echo -e "y\n\ny\n" | \
certutil -S \
-d nssdb \
-f nssdb/password.txt \
-z nssdb/noise.bin \
-n "CA Signing Certificate" \
-s "CN=CA Signing Certificate,O=EXAMPLE" \
-x \
-t "CTu,Cu,Cu" \
-m $RANDOM\
-2 \
--keyUsage certSigning \
--nsCertType sslCA,smimeCA,objectSigningCA
certutil -L -d nssdb -n "CA Signing Certificate" -a > nssdb/ca.crt
|