certutil: add page (#8664)

This commit is contained in:
Henrique Borges
2022-10-04 13:03:01 -03:00
committed by GitHub
parent ac15e7047a
commit 7e7bfc6e07

24
pages/common/certutil.md Normal file
View File

@@ -0,0 +1,24 @@
# certutil
> Manage keys and certificates in both NSS databases and other NSS tokens.
> More information: <https://manned.org/certutil>.
- Create a new certificate database:
`certutil -N -d .`
- List all certificates in a database:
`certutil -L -d .`
- List all private keys in a database:
`certutil -K -d . -f {{path/to/pwdfile.txt}}`
- Import the signed certificate into the requesters database:
`certutil -A -n "{{Server-cert}}" -t ",," -i {{path/to/file.crt}} -d .`
- Add subject alternative names to a given certificate:
`certutil -S -f {{path/to/pwdfile.txt}} -d . -t ",," -c "{{Server-Cert}}" -n "{{server1}}" -g {{2048}} -s "CN={{testuser1}},O={{testrelm.test}}"`