From 7e7bfc6e0775206ba420953f4cb8099472bd142e Mon Sep 17 00:00:00 2001 From: Henrique Borges <31735860+henriquehbr@users.noreply.github.com> Date: Tue, 4 Oct 2022 13:03:01 -0300 Subject: [PATCH] certutil: add page (#8664) --- pages/common/certutil.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/certutil.md diff --git a/pages/common/certutil.md b/pages/common/certutil.md new file mode 100644 index 000000000..a663d21a8 --- /dev/null +++ b/pages/common/certutil.md @@ -0,0 +1,24 @@ +# certutil + +> Manage keys and certificates in both NSS databases and other NSS tokens. +> More information: . + +- 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}}"`