Skip to content

Commit f80d836

Browse files
committed
test with set-location
1 parent 41c0536 commit f80d836

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/actions/setup_cross_ci_helpers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
def create_windows_cert_store(env, certificate_env, location_env):
14-
windows_certificate_location = "CurrentUser\\My"
15-
windows_certificate_folder = "Cert:\\" + windows_certificate_location
14+
windows_certificate_location = "LocalMachine\\my"
15+
windows_certificate_folder = "cert:\\" + windows_certificate_location
1616

1717
# Is the environment variable set?
1818
if (env.shell.getenv(certificate_env) == None):
@@ -21,7 +21,7 @@ def create_windows_cert_store(env, certificate_env, location_env):
2121
pfx_cert_path = env.shell.getenv(certificate_env)
2222

2323
# Then print the avaliable folders
24-
env.shell.exec("pwsh.exe", "ls cert:", check=True)
24+
env.shell.exec("pwsh.exe", "set-location Cert:", check=True)
2525

2626
# Import the PFX into the Windows Certificate Store
2727
# (Passing '$mypwd' is required even though it is empty and our certificate has no password. It fails CI otherwise)

0 commit comments

Comments
 (0)