AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de certificados
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Signs an executable file with a certificate. The signature is included in the file.
Ejemplo
// Open the certificate picker of Windows
MyCertificate is Certificate
MyCertificate = CertificateSelect()

// Cancellation or error
IF MyCertificate = Null THEN
	RETURN
END

// If the selected certificate is valid for signing
IF NOT MyCertificate.ValidForSignature THEN
	Info("The selected certificate cannot be used to generate a signature.")
	RETURN
END

// Retrieve the buffer containing the signature
IF NOT CertificateSignExecutable(sFullFileName, MyCertificate) THEN
	Error("Error while signing the certificate:" + CR + ErrorInfo())
END
Sintaxis
<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.
certSHA256Algorithm 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.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300std.dll
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/03/2025

Señalar un error o enviar una sugerencia | Ayuda local