File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
.azure-pipelines/windows-release Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 96
96
displayName : Sign side-loadable MSIX bundles
97
97
dependsOn :
98
98
- Pack_MSIX
99
- # Our current certificate does not support MSIX signing, so we unconditionally skip this step
100
- # condition: and(succeeded(), variables['SigningCertificate'])
101
- condition : false
99
+ condition : and(succeeded(), variables['SigningCertificate'])
102
100
103
101
pool :
104
102
name : ' Windows Release'
@@ -123,6 +121,10 @@ jobs:
123
121
downloadPath : $(Build.BinariesDirectory)
124
122
125
123
# MSIX must be signed and timestamped simultaneously
124
+ #
125
+ # Getting "Error: SignerSign() failed." (-2147024885/0x8007000b)"?
126
+ # It may be that the certificate info collected in stage-sign.yml is wrong. Check that
127
+ # you do not have multiple matches for the certificate name you have specified.
126
128
- powershell : |
127
129
$failed = $true
128
130
foreach ($retry in 1..3) {
Original file line number Diff line number Diff line change 91
91
- powershell : |
92
92
$m = 'CN=$(SigningCertificate)'
93
93
$c = ((gci Cert:\CurrentUser\My), (gci Cert:\LocalMachine\My)) | %{ $_ } | `
94
- ?{ $_.Subject -match $m } | `
94
+ ?{ $_.Subject -match $m -and $_.NotBefore -lt (Get-Date) -and $_.NotAfter -gt (Get-Date) } | `
95
95
select -First 1
96
96
if (-not $c) {
97
97
Write-Host "Failed to find certificate for $(SigningCertificate)"
You can’t perform that action at this time.
0 commit comments