Skip to content

Commit

Permalink
refactoring the helper.rb to put a default for output_path. Generic c…
Browse files Browse the repository at this point in the history
…alls to cert_ps_cmd fail since they won't provide a path by default

Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
johnmccrae committed Mar 4, 2021
1 parent 835f824 commit ddb61dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit ddb61dd

Please sign in to comment.