certutil: fix placeholders (#8668)

pull/1/head
Henrique Borges 2022-10-07 19:33:22 -03:00 committed by GitHub
parent 36e2f9f0cc
commit 5385806733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,24 @@
# certutil
> Gerencie chaves e certificados em bancos de dados e tokens NSS
> Mais informações: <https://manned.org/certutil>.
- Cria um novo banco de dados de certificados:
`certutil -N -d .`
- Lista todos os certificados em um banco de dados:
`certutil -L -d .`
- Lista todas as chaves privadas em um banco de dados:
`certutil -K -d . -f {{caminho/para/arquivo_de_senha.txt}}`
- Importa o certificado assinado para o banco de dados dos solicitantes:
`certutil -A -n "{{certificado_do_servidor}}" -t ",," -i {{caminho/para/arquivo.crt}} -d .`
- Adiciona nomes de assunto a um determinado certificado:
`certutil -S -f {{caminho/para/arquivo_de_senha.txt}} -d . -t ",," -c "{{certificado_do_servidor}}" -n "{{nome_do_servidor}}" -g {{2048}} -s "CN={{nome_comum}},O={{organização}}"`

View File

@ -13,12 +13,12 @@
- List all private keys in a database:
`certutil -K -d . -f {{path/to/pwdfile.txt}}`
`certutil -K -d . -f {{path/to/password_file.txt}}`
- Import the signed certificate into the requesters database:
`certutil -A -n "{{Server-cert}}" -t ",," -i {{path/to/file.crt}} -d .`
`certutil -A -n "{{server_certificate}}" -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}}"`
`certutil -S -f {{path/to/password_file.txt}} -d . -t ",," -c "{{server_certificate}}" -n "{{server_name}}" -g {{2048}} -s "CN={{common_name}},O={{organization}}"`