summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2021-03-02 10:56:19 -0800
committerJohn McCrae <john.mccrae@progress.com>2021-03-02 10:56:19 -0800
commita66fe077a0534bf92ff15b5a4b916d19a7da956c (patch)
treed15c7f6adaa40502e33310d583761f04807c00f6
parent302164cca6e85435885ffbd3cf4d15f836dc3263 (diff)
downloadchef-a66fe077a0534bf92ff15b5a4b916d19a7da956c.tar.gz
updated the header examples
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--lib/chef/resource/windows_certificate.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb
index bfd0b5dffb..e3ac5eb726 100644
--- a/lib/chef/resource/windows_certificate.rb
+++ b/lib/chef/resource/windows_certificate.rb
@@ -43,6 +43,35 @@ class Chef
private_key_acl ["acme\\fred", "pc\\jane"]
end
```
+ **Retrieve the private key from a pfx object**
+
+ ```ruby
+ windows_certificate 'Get the private key for a pfx assigned to the local machine certificate store' do
+ pfx_password "1234"
+ source "<something from the subject line of the pfx i.e. CN= >"
+ user_store false
+ action :fetch_pfx_key
+ end
+
+ **Retrieve the certificatge from a pfx object**
+
+ ```ruby
+ windows_certificate 'Get the cert for a pfx assigned to the local machine certificate store' do
+ pfx_password "1234"
+ source "<something from the subject line of the pfx i.e. CN= >"
+ user_store false
+ action :fetch_pfx_cert
+ end
+
+ **Export a PFX object with password to a temporary folder**
+
+ ```ruby
+ windows_certificate 'Get my PFX Object' do
+ pfx_password "1234"
+ source "<something from the subject line of the pfx i.e. CN= >"
+ user_store false
+ action :fetch_pfx
+ end
**Add cert to trusted intermediate store**