-
-
Notifications
You must be signed in to change notification settings - Fork 4
Invoke FSCPSDigiCertSignFile
onikolaiev edited this page May 27, 2024
·
1 revision
Function to sign the files with digicert
Invoke-FSCPSDigiCertSignFile [[-SM_HOST] <String>] [-SM_API_KEY] <String> [[-SM_CLIENT_CERT_FILE] <String>]
[[-SM_CLIENT_CERT_FILE_URL] <String>] [-SM_CLIENT_CERT_PASSWORD] <SecureString>
[-SM_CODE_SIGNING_CERT_SHA1_HASH] <String> [-FILE] <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Function to sign the files with digicert
Invoke-FSCPSDigiCertSignFile -SM_API_KEY "$codeSignDigiCertAPISecretName" `
-SM_CLIENT_CERT_FILE_URL "$codeSignDigiCertUrlSecretName" `
-SM_CLIENT_CERT_PASSWORD $(ConvertTo-SecureString $codeSignDigiCertPasswordSecretName -AsPlainText -Force) `
-SM_CODE_SIGNING_CERT_SHA1_HASH "$codeSignDigiCertHashSecretName" `
-FILE "$filePath"
This will sign the target file with the DigiCert certificate
Digicert host URL. Default value "https://clientauth.one.digicert.com"
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Https://clientauth.one.digicert.com
Accept pipeline input: False
Accept wildcard characters: False
The DigiCert API Key
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The DigiCert certificate local path (p12)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: C:\temp\digicert.p12
Accept pipeline input: False
Accept wildcard characters: False
The DigiCert certificate URL (p12)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The DigiCert certificate password
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The DigiCert certificate thumbprint(fingerprint)
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A 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: False
This 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)