|
|
|
|
|
CertificateSignExecutable (Function) In french: CertificatSigneExécutable Signs an executable file with a certificate. The signature is included in the file.
MonCertificat is Certificate
MonCertificat = CertificateSelect()
IF MonCertificat = Null THEN
RETURN
END
IF NOT MonCertificat.ValidForSignature THEN
Info("Le certificat sélectionné ne permet de pas de générer une signature.")
RETURN
END
IF NOT CertificateSignExecutable(sNomCompletFichier, MonCertificat) THEN
Error("Erreur de signature de l'exécutable: " + CR + ErrorInfo())
END
Syntax
<Result> = CertificateSignExecutable(<Executable> , <Certificate> [, <Description> [, <Algorithm>]])
<Result>: Boolean - True if the executable was signed,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Executable>: Character string Full name of executable file to sign. <Certificate>: Certificate variable Name of the variable of type Certificate that contains the certificate to be used to sign the executable. <Description>: Optional character string Text displayed by the UAC window when running the executable. <Algorithm>: Integer constant Hash algorithm used by the signature:
| | certSHA160 (Default value) | Algorithm also known as SHA1. | certSHA256 | Algorithm also known as SHA2. Note: This algorithm is not recognized under Windows Vista.. The UAC does not display any information and the executable can be run. |
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|