diff options
author | John McCrae <john.mccrae@progress.com> | 2023-03-28 15:05:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 15:05:46 -0700 |
commit | cf642c0cce993d0399dc1420cce0034ffcd297d3 (patch) | |
tree | e49e6d894bb2a16541827dfc88c1b42859a26b22 | |
parent | ba02e4b314335a7b16503a93eeb215045c5a4607 (diff) | |
parent | 233b6090ddf52d0103e59b5bfc0fcbc821d2cd15 (diff) | |
download | chef-cf642c0cce993d0399dc1420cce0034ffcd297d3.tar.gz |
Merge pull request #13651 from chef/jfm/chef18_cert_take3
Updating cert code to adjust user vs localmachine keys
-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) |