Skip to content

Commit

Permalink
Update the ESRP code signing script
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Apr 6, 2021
1 parent 93f50c5 commit 95996f8
Showing 1 changed file with 56 additions and 84 deletions.
140 changes: 56 additions & 84 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,90 +117,62 @@ steps:
Pattern: '$(mainDll)'
signConfigType: inlineSignParams
inlineOperation: |
[
  {
    "keyCode": "MSSharedLibSnKey",
    "operationSetCode": "StrongNameSign",
    "parameters": null,
    "toolName": "sn.exe",
    "toolVersion": "V4.6.1586.0"
  },
  {
    "keyCode": "MSSharedLibSnKey",
    "operationSetCode": "StrongNameVerify",
    "parameters": null,
    "toolName": "sn.exe",
    "toolVersion": "V4.6.1586.0"
  },
  {
    "keyCode": "CP-230012",
    "operationSetCode": "SigntoolSign",
    "parameters": [
    {
      "parameterName": "OpusName",
      "parameterValue": "TestSign"
    },
    {
      "parameterName": "OpusInfo",
      "parameterValue": "http://test"
    },
    {
      "parameterName": "PageHash",
      "parameterValue": "/NPH"
    },
    {
      "parameterName": "TimeStamp",
      "parameterValue": "/t \"http://ts4096.gtm.microsoft.com/TSS/AuthenticodeTS\""
    }
    ],
    "toolName": "signtool.exe",
    "toolVersion": "6.2.9304.0"
  },
  {
    "keyCode": "CP-230012",
    "operationSetCode": "SigntoolSign",
    "parameters": [
    {
      "parameterName": "OpusName",
      "parameterValue": "TestSign"
    },
    {
      "parameterName": "OpusInfo",
      "parameterValue": "http://test"
    },
    {
      "parameterName": "Append",
      "parameterValue": "/AS"
    },
    {
      "parameterName": "PageHash",
      "parameterValue": "/NPH"
    },
    {
      "parameterName": "FileDigest",
      "parameterValue": "/fd sha256"
    },
    {
      "parameterName": "TimeStamp",
      "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
    }
    ],
    "toolName": "signtool.exe",
    "toolVersion": "6.2.9304.0"
  },
  {
    "keyCode": "CP-230012",
    "operationSetCode": "SigntoolVerify",
    "parameters": [
    {
      "parameterName": "VerifyAll",
      "parameterValue": "/all"
    }
],
    "toolName": "signtool.exe",
    "toolVersion": "6.2.9304.0"
  }
]
[
{
"keyCode": "MSSharedLibSnKey",
"operationSetCode": "StrongNameSign",
"parameters": null,
"toolName": "sn.exe",
"toolVersion": "V4.6.1586.0"
},
{
"keyCode": "MSSharedLibSnKey",
"operationSetCode": "StrongNameVerify",
"parameters": null,
"toolName": "sn.exe",
"toolVersion": "V4.6.1586.0"
},
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
},
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolVerify",
"parameters": [
{
"parameterName": "VerifyAll",
"parameterValue": "/all"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
  }
]
VerboseLogin: true

- task: CopyFiles@2
Expand Down

0 comments on commit 95996f8

Please sign in to comment.