-
-
Notifications
You must be signed in to change notification settings - Fork 5
Invoke FSCPSAzureSignToolSignFile
Function to sign the files with KeyVault
Invoke-FSCPSAzureSignToolSignFile [[-Uri] <String>] [-TenantId] <String> [[-CertificateName] <String>]
[[-ClientId] <String>] [-ClientSecret] <SecureString> [-TimestampServer] <String> [-FILE] <String>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Function to sign the files with KeyVault
Invoke-FSCPSAzureSignToolSignFile -Uri "https://my-vault.vault.azure.net" `
-TenantId "01234567-abcd-ef012-0000-0123456789ab" `
-CertificateName "my-key-name" `
-ClientId "01234567-abcd-ef012-0000-0123456789ab" `
-ClientSecret "secret" `
-FILE "$filePath"
This will sign the target file with the KeyVault certificate
A fully qualified URL of the key vault with the certificate that will be used for signing. An example value might be https://my-vault.vault.azure.net.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis is the tenant id used to authenticate to Azure, which will be used to generate an access token.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the certificate used to perform the signing operation.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis is the client ID used to authenticate to Azure, which will be used to generate an access token.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis is the client secret used to authenticate to Azure, which will be used to generate an access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseA URL to an RFC3161 compliant timestamping service.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 6
Default value: Http://timestamp.digicert.com
Accept pipeline input: False
Accept wildcard characters: FalseA file to sign
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Oleksandr Nikolaiev (@onikolaiev)