diff --git a/pages.nl/common/certutil.md b/pages.nl/common/certutil.md new file mode 100644 index 000000000..1cf0d92f6 --- /dev/null +++ b/pages.nl/common/certutil.md @@ -0,0 +1,24 @@ +# certutil + +> Beheer sleutels en certificaten in zowel NSS-databases als andere NSS-tokens. +> Meer informatie: . + +- Maak een [N]ieuwe certificaatdatabase aan in de huidige [d]irectory: + +`certutil -N -d .` + +- Toon alle certificaten in een database: + +`certutil -L -d .` + +- Toon alle private [S]leutels in een database door het wachtwoord[b]estand te specificeren: + +`certutil -K -d . -f {{pad/naar/wachtwoord_bestand.txt}}` + +- [V]oeg het ondertekende certificaat toe aan de database van de aanvrager door een [b]ijnaam, [v]ertrouwensattributen en een [i]nvoer-CRT-bestand te specificeren: + +`certutil -A -n "{{server_certificaat}}" -t ",," -i {{pad/naar/bestand.crt}} -d .` + +- Voeg subject alternative names toe aan een [c]ertificaat met een specifieke sleutelgrootte ([g]): + +`certutil -S -f {{pad/naar/wachtwoordbestand.txt}} -d . -t ",," -c "{{server_certificaat}}" -n "{{server_naam}}" -g {{2048}} -s "CN={{common_name}},O={{organisatie}}"` diff --git a/pages.nl/windows/certutil.md b/pages.nl/windows/certutil.md new file mode 100644 index 000000000..b7e4c95dc --- /dev/null +++ b/pages.nl/windows/certutil.md @@ -0,0 +1,24 @@ +# certutil + +> Een tool om certificaatinformatie te beheren en configureren. +> Meer informatie: . + +- Dump de configuratie-informatie of bestanden: + +`certutil {{bestandsnaam}}` + +- Encodeer een bestand in hexadecimaal: + +`certutil -encodehex {{pad\naar\invoer_bestand}} {{pad\naar\uitvoer_bestand}}` + +- Encodeer een bestand naar Base64: + +`certutil -encode {{pad\naar\invoer_bestand}} {{pad\naar\uitvoer_bestand}}` + +- Decodeer een Base64-gecodeerd bestand: + +`certutil -decode {{pad\naar\invoer_bestand}} {{pad\naar\uitvoer_bestand}}` + +- Genereer en toon een cryptografische hash over een bestand: + +`certutil -hashfile {{pad\naar\invoer_bestand}} {{md2|md4|md5|sha1|sha256|sha384|sha512}}`