summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2023-03-28 15:05:46 -0700
committerGitHub <noreply@github.com>2023-03-28 15:05:46 -0700
commitcf642c0cce993d0399dc1420cce0034ffcd297d3 (patch)
treee49e6d894bb2a16541827dfc88c1b42859a26b22
parentba02e4b314335a7b16503a93eeb215045c5a4607 (diff)
parent233b6090ddf52d0103e59b5bfc0fcbc821d2cd15 (diff)
downloadchef-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.rb4
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)