diff options
author | Thomas Powell <powell@progress.com> | 2022-08-10 12:58:01 -0400 |
---|---|---|
committer | Thomas Powell <powell@progress.com> | 2022-08-10 12:58:01 -0400 |
commit | ea7002d361647f3f315feb35085943e88196c8ef (patch) | |
tree | 2cd44799775faee338bedd200d57044e920304d5 | |
parent | 805df23576c2ff7c6468933ebc7c90d286672d16 (diff) | |
download | chef-ea7002d361647f3f315feb35085943e88196c8ef.tar.gz |
Test debugging encrypt/decrypt
-rw-r--r-- | lib/chef/http/authenticator.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb index c795297397..820a789934 100644 --- a/lib/chef/http/authenticator.rb +++ b/lib/chef/http/authenticator.rb @@ -174,7 +174,9 @@ class Chef present.each do |secret| if secret[:name] == "PfxPass" + Chef::Log.warn("get_cert_password decrypt_pfx_pass(#{secret[:data]}") password = decrypt_pfx_pass(secret[:data]) + Chef::Log.warn("#{password} = get_cert_password decrypt_pfx_pass(#{secret[:data]}") return password end end @@ -192,6 +194,7 @@ class Chef size = 14 password = SecureRandom.alphanumeric(size) encrypted_pass = encrypt_pfx_pass(password) + Chef::Log.warn("#{encrypted_pass} = encrypt_pfx_pass(#{password})") values = { name: "PfxPass", type: :string, data: encrypted_pass } @win32registry.set_value(new_path, values) password |