The Invoke-AzArtifactSigningCIPolicySigning cmdlet signs the CI Policy bin file.
Use this cmdlet to sign a CI Policy bin file.
There are two sets of parameters. One set uses AccountName, ProfileName, and EndpointUrl.
Another set uses MetadataFilePath.
Path is the original unsigned CI Policy file path.
Destination is the signing CI Policy file path, which includes file name.
TimeStamperUrl is optional, but it's strongly recommended to do TimeStamping along with Signing.
Examples
Example 1: Sign a CI Policy .bin file by account and profile name
Specifies Azure ArtifactSigning Metadata file path used to sign CI policy. It's a file path, and the metadata content is below. File content example:
{
"Endpoint": "https://xxx.artifactsigning.azure.net/",
"ArtifactSigningAccountName": "acstest",
"CertificateProfileName": "acstestCert1"
}
Specifies Azure ArtifactSigning TimeStamper Url used to sign CI policy. The format is Url, recommended timestamper is http://timestamp.acs.microsoft.com.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
Inputs
Azure ArtifactSigning AccountName
Azure ArtifactSigning Profile Name
Azure ArtifactSigning Signing EndpointUrl
Azure ArtifactSigning UnSigned CI Policy File Path
Azure ArtifactSigning Signed CI Policy File Path Destination
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.