diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-22 14:27:23 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-22 14:27:23 +0600 |
commit | 4bc02072adc2cfb4940898c161772a8c1d7daab4 (patch) | |
tree | cf62cce28f974c62449aa3d62e859e25883a69d0 | |
parent | 366cc9ca990f77ce04f03fbdde4f821b1f180c93 (diff) | |
download | chef-jfm/client_pem_update1.tar.gz |
Updated the client_pem codejfm/client_pem_update1
Signed-off-by: John McCrae <jmccrae@chf.io>
-rw-r--r-- | lib/chef/client.rb | 4 | ||||
-rw-r--r-- | lib/chef/http/authenticator.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index a1e137fca7..7fbdc5b4a0 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -641,8 +641,6 @@ class Chef # @api private # def register(client_name = node_name, config = Chef::Config) - require "pry" - binding.pry if !config[:client_key] events.skipping_registration(client_name, config) logger.trace("Client key is unspecified - skipping registration") @@ -728,7 +726,6 @@ class Chef # Chef client and node objects exist on Chef Server already # Create a new public/private keypair in secure storage # and register the new public cert with Chef Server - binding.pry require "time" unless defined?(Time) autoload :URI, "uri" @@ -814,7 +811,6 @@ class Chef end def self.import_pfx_to_store(new_pfx) - binding.pry password = ::Chef::HTTP::Authenticator.get_cert_password require "win32-certstore" tempfile = Tempfile.new("#{Chef::Config[:node_name]}.pfx") diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb index 7ae69413cb..1db6c10f97 100644 --- a/lib/chef/http/authenticator.rb +++ b/lib/chef/http/authenticator.rb @@ -139,8 +139,6 @@ class Chef end def load_signing_key(key_file, raw_key = nil) - require "pry" - binding.pry results = retrieve_certificate_key(Chef::Config[:node_name]) if !!results @@ -168,7 +166,6 @@ class Chef end def self.get_cert_password - binding.pry @win32registry = Chef::Win32::Registry.new path = "HKEY_LOCAL_MACHINE\\Software\\Progress\\Authentication" # does the registry key even exist? @@ -216,7 +213,6 @@ class Chef $string = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR((($secure_string)))) return $string CODE - # binding.pry powershell_exec!(powershell_code).result end |