update certificate resource documentation

This commit is contained in:
Mark John Merin 2022-02-25 13:51:52 -08:00
Родитель 5df85e6db0
Коммит 967ca169e1
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -3,7 +3,7 @@ certificate
Use the **certificate** resource to manage certificates for keychains.
Under the hood, the [**certificate**](https://github.com/Microsoft/macos-cookbook/blob/master/resources/certificate.rb) resource executes the `security`
command in the `security_cmd` library.
command in the [**security_cmd**](https://github.com/Microsoft/macos-cookbook/blob/master/libraries/security_cmd.rb) library.
Syntax
------
@ -16,6 +16,7 @@ certificate 'cert name' do
certfile String # certificate in .p12(PFX) or .cer(SSl certificate file) format
cert_passwd String # password for PFX format certificate file
keychain String # keychain to install certificate to
kc_passwd String # keychain password
apps Array # list of apps that may access the imported key
end
```
@ -48,6 +49,7 @@ certificate 'cert name' do
certfile '/User/edward/Documents/cert.p12'
cert_passwd 'teach'
keychain '/User/edward/Library/Keychains/florida.keychain'
kc_passwd 'test'
end
```