Skip to content

Commit

Permalink
rename powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 5, 2024
1 parent a22d5ca commit 41c0536
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions builder/actions/setup_cross_ci_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,16 @@ def create_windows_cert_store(env, certificate_env, location_env):
return
pfx_cert_path = env.shell.getenv(certificate_env)


# Quick test to check if windows can find cert:
env.shell.exec("powershell.exe", "set-location cert:", check=True)
# Then print the avaliable folders
env.shell.exec("powershell.exe", "dir", check=True)
env.shell.exec("pwsh.exe", "ls cert:", check=True)

# 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 = [
"Import-PfxCertificate",
"-FilePath", pfx_cert_path,
"-CertStoreLocation", windows_certificate_folder]
import_result = env.shell.exec("powershell.exe", import_pfx_arguments, check=True)
import_result = env.shell.exec("pwsh.exe", import_pfx_arguments, check=True)

# Get the certificate thumbprint from the output:
import_pfx_output = str(import_result.output)
Expand Down

0 comments on commit 41c0536

Please sign in to comment.