mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
security: add more examples (#6645)
This commit is contained in:
parent
90666387c7
commit
da5d38acdd
1 changed files with 9 additions and 1 deletions
|
@ -13,4 +13,12 @@
|
|||
|
||||
- Create a keychain:
|
||||
|
||||
`security create-keychain -p {{password}} {{name.keychain}}`
|
||||
`security create-keychain -p {{password}} {{keychain.name}}`
|
||||
|
||||
- Set a certificate to use with a website or [s]ervice by its [c]ommon name (fails if several certificates with the same common name exist):
|
||||
|
||||
`security set-identity-preference -s {{URL|hostname|service}} -c "{{common_name}}" {{path/to/file.keychain}}`
|
||||
|
||||
- Add a certificate from file to a [k]eychain (if -k isn't specified, the default keychain is used):
|
||||
|
||||
`security add-certificates -k {{keychain.name}} {{path/to/file.pem}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue