diff options
author | John McCrae <mccrae@progress.com> | 2023-03-28 13:15:13 -0700 |
---|---|---|
committer | John McCrae <mccrae@progress.com> | 2023-03-28 13:15:13 -0700 |
commit | 233b6090ddf52d0103e59b5bfc0fcbc821d2cd15 (patch) | |
tree | e49e6d894bb2a16541827dfc88c1b42859a26b22 | |
parent | ba02e4b314335a7b16503a93eeb215045c5a4607 (diff) | |
download | chef-233b6090ddf52d0103e59b5bfc0fcbc821d2cd15.tar.gz |
Updating cert code to adjust user vs localmachine keys
Signed-off-by: John McCrae <mccrae@progress.com>
-rw-r--r-- | lib/chef/http/authenticator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb index 10d85db4e6..9a8d1d2b59 100644 --- a/lib/chef/http/authenticator.rb +++ b/lib/chef/http/authenticator.rb @@ -124,11 +124,11 @@ class Chef end def self.get_cert_user - Chef::Config[:auth_key_registry_type] == "user" ? store = "CurrentUser" : store = "LocalMachine" + Chef::Config[:auth_key_registry_type] == "user" ? "CurrentUser" : "LocalMachine" end def self.get_registry_user - Chef::Config[:auth_key_registry_type] == "user" ? store = "HKEY_CURRENT_USER" : store = "HKEY_LOCAL_MACHINE" + Chef::Config[:auth_key_registry_type] == "user" ? "HKEY_CURRENT_USER" : "HKEY_LOCAL_MACHINE" end def self.check_certstore_for_key(client_name) |