Skip to content

Commit

Permalink
Merge pull request #720 from mousetraps/signing
Browse files Browse the repository at this point in the history
#714 update signing certificates
  • Loading branch information
mousetraps committed Mar 1, 2016
2 parents 9354a1b + 49aab2c commit a3f9233
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
9 changes: 6 additions & 3 deletions Build/BuildReleaseHelpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ function begin_sign_files {
$job.Keywords = $jobKeywords

if ($certificates -match "authenticode") {
$job.SelectCertificate("10006") # Authenticode
$job.SelectCertificate("401") # Authenticode
}
if ($certificates -match "msi") {
$job.SelectCertificate("400") # Authenticode
}
if ($certificates -match "strongname") {
$job.SelectCertificate("67") # StrongName key
}
if ($certificates -match "opc") {
$job.SelectCertificate("160") # Microsoft OPC Publisher (VSIX)
if ($certificates -match "vsix") {
$job.SelectCertificate("10040160") # Microsoft OPC Publisher (VSIX)
}

foreach ($approver in $approvers) {
Expand Down
15 changes: 11 additions & 4 deletions Build/BuildReleaseMockHelpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,23 @@ job.Keywords: $jobKeywords"

if ($certificates -match "authenticode") {
$msg = "$msg
job.SelectCertificate(10006)"
$job.SelectCertificate("10006") # Authenticode
job.SelectCertificate(401)"
$job.SelectCertificate("401") # Authenticode
}
if ($certificates -match "msi") {
$msg = "$msg
job.SelectCertificate(400)"
$job.SelectCertificate("400") # Authenticode for MSI
}
if ($certificates -match "strongname") {
$msg = "$msg
job.SelectCertificate(67)"
$job.SelectCertificate("67") # StrongName key
}
if ($certificates -match "opc") {
$job.SelectCertificate("160") # Microsoft OPC Publisher (VSIX)
if ($certificates -match "vsix") {
$msg = "$msg
job.SelectCertificate(100040160)"
$job.SelectCertificate("100040160") # Microsoft OPC Publisher (VSIX)
}

foreach ($approver in $approvers) {
Expand Down
4 changes: 2 additions & 2 deletions Nodejs/Setup/BuildRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ try {

$jobs += begin_sign_files $msi_files $i.signed_msidir $approvers `
$project_name $project_url "$project_name $($i.VSName) - installer" $project_keywords `
"authenticode"
"msi"
}


Expand All @@ -575,7 +575,7 @@ try {

$jobs += begin_sign_files $vsix_files $i.signed_msidir $approvers `
$project_name $project_url "$project_name $($i.VSName) - VSIX" $project_keywords `
"authenticode;opc"
"vsix"
}
}

Expand Down

0 comments on commit a3f9233

Please sign in to comment.