Skip to content

Commit

Permalink
Merge pull request #76 from chef/jfm/update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmccrae authored Mar 4, 2021
2 parents 4240953 + 7621549 commit 77cf512
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/win32/certstore/mixin/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Certstore
module Mixin
module Helper
# PSCommand to search certificate from thumbprint and either turn it into a pem or return a path to a pfx object
def cert_ps_cmd(thumbprint, store_location: "LocalMachine", export_password: "1234", output_path:)
def cert_ps_cmd(thumbprint, store_location: "LocalMachine", export_password: "1234", output_path: "")
<<-EOH
$cert = Get-ChildItem Cert:\'#{store_location}' -Recurse | Where { $_.Thumbprint -eq '#{thumbprint}' }
Expand All @@ -34,10 +34,8 @@ def cert_ps_cmd(thumbprint, store_location: "LocalMachine", export_password: "12
if($use.FriendlyName -like "Client Authentication" ){
return $true
}
else {
return $false
}
}
return $false
}
$result = test_cert_values
Expand Down

0 comments on commit 77cf512

Please sign in to comment.