diff options
| author | Steve Dower <steve.dower@microsoft.com> | 2018-12-21 13:48:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-21 13:48:18 -0800 |
| commit | d3bbc5241363d5fa4e749fe509c97c12501ae966 (patch) | |
| tree | 1dc4f8616fdf20d98269baa7922a7621ef4fc093 /Tools/msi | |
| parent | f0af4c54e32d963e1ccbac005bcbcab1913e051f (diff) | |
| download | cpython-git-d3bbc5241363d5fa4e749fe509c97c12501ae966.tar.gz | |
Enable signing Windows builds with SHA1 environment variable (GH-11279)
Diffstat (limited to 'Tools/msi')
| -rw-r--r-- | Tools/msi/sdktools.psm1 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/msi/sdktools.psm1 b/Tools/msi/sdktools.psm1 index 81a74d3679..61edb34117 100644 --- a/Tools/msi/sdktools.psm1 +++ b/Tools/msi/sdktools.psm1 @@ -21,6 +21,9 @@ function Sign-File { $description = "Python"; } } + if (-not $certsha1) { + $certsha1 = $env:SigningCertificateSha1; + } if (-not $certname) { $certname = $env:SigningCertificate; } @@ -32,7 +35,7 @@ function Sign-File { if ($certsha1) { SignTool sign /sha1 $certsha1 /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a } elseif ($certname) { - SignTool sign /n $certname /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a + SignTool sign /a /n $certname /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a } elseif ($certfile) { SignTool sign /f $certfile /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a } else { |
