blob: b8c2d5e46dc46a954061bc54467b30b4c9080173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh +x
certutil -R \
-d nssdb \
-z nssdb/noise.bin \
-f nssdb/password.txt \
-s "UID=testuser,O=EXAMPLE" \
-o nssdb/testuser.csr.der
BtoA nssdb/testuser.csr.der nssdb/testuser.csr.pem
echo "-----BEGIN NEW CERTIFICATE REQUEST-----" > nssdb/testuser.csr
cat nssdb/testuser.csr.pem >> nssdb/testuser.csr
echo "-----END NEW CERTIFICATE REQUEST-----" >> nssdb/testuser.csr
rm nssdb/testuser.csr.der
rm nssdb/testuser.csr.pem
|