Skip to content

Commit

Permalink
test old pwsh command
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 12, 2024
1 parent 15812a6 commit c29bdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/run_in_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def make_windows_pfx_file(certificate_file_path, private_key_path, pfx_file_path

# Import the PFX into the Windows Certificate Store
# (Passing '$mypwd' is required even though it is empty and our certificate has no password. It fails CI otherwise)
import_pfx_arguments = ["pwsh.exe", "-Command", "{Import-PfxCertificate", "-FilePath ", pfx_file_path, "-CertStoreLocation", "Cert:\\" + pfx_certificate_store_location, "-Password", "$mypwd", "}"]
import_pfx_arguments = ["powershell.exe", "Import-PfxCertificate", "-FilePath", pfx_file_path, "-CertStoreLocation", "Cert:\\" + pfx_certificate_store_location, "-Password", "$mypwd"]
import_pfx_run = subprocess.run(args=import_pfx_arguments, shell=True, stdout=subprocess.PIPE)
print("import out: " + str(import_pfx_run.stdout))
print("import err: " + str(import_pfx_run.stderr))
Expand Down

0 comments on commit c29bdeb

Please sign in to comment.