diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-12-03 15:17:06 +0530 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-19 17:15:44 -0800 |
commit | a79aae4e168d765c4e8971a4fc037ef735f14676 (patch) | |
tree | 3e0c5c2c1a070a0f991a7c33e8b6d3ecbdf24674 | |
parent | 5c440f248e22b41437da465d8876f7c139d81726 (diff) | |
download | chef-pfx_cert_14.tar.gz |
Fix for pfx_password validationpfx_cert_14
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
-rw-r--r-- | lib/chef/resource/windows_certificate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb index b482a09cc4..c0bc5bac99 100644 --- a/lib/chef/resource/windows_certificate.rb +++ b/lib/chef/resource/windows_certificate.rb @@ -250,7 +250,7 @@ class Chef when ".cer" powershell_out("openssl x509 -text -inform DER -in #{source} -outform PEM").stdout when ".pfx" - powershell_out("openssl pkcs12 -in #{source} -nodes -passin pass:#{new_resource.pfx_password}").stdout + powershell_out("openssl pkcs12 -in #{source} -nodes -passin pass:'#{new_resource.pfx_password}'").stdout when ".p7b" powershell_out("openssl pkcs7 -print_certs -in #{source} -outform PEM").stdout end |