diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-12-03 15:17:06 +0530 |
---|---|---|
committer | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-12-05 18:05:42 +0530 |
commit | 2caee61cd53ae728846faa0d464b196b75d050b1 (patch) | |
tree | 1e6d7394cb264dea5e20bea3a59056c2382a60e2 /lib | |
parent | 3584550db722a9c45a5d98c36eb93d7b814f801f (diff) | |
download | chef-2caee61cd53ae728846faa0d464b196b75d050b1.tar.gz |
Fix for pfx_password validation
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib')
-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 053a67e3e0..157deeddf6 100644 --- a/lib/chef/resource/windows_certificate.rb +++ b/lib/chef/resource/windows_certificate.rb @@ -249,7 +249,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 |