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
  • Managing certificates in WEBDEV
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
Checks the correspondence between a signature and a file. The signature was stored as a Buffer variable.
Ejemplo
MyCertificate is Certificate

// Open the certificate picker of Windows
MyCertificate = CertificateSelect()

// Cancellation or error
IF MyCertificate.Name = "" THEN
	RETURN
END

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

// Retrieve the buffer containing the signature
bufSignature is Buffer
bufSignature = CertificateSignFile(FullFileName, MyCertificate)


// Check the signature
SWITCH CertificateCheckFileSignatureBuffer(FullFileName, bufSignature)
	CASE certificateOk: Info("Valid signature and reliable certificate")
	CASE certificateInvalid: Info("Invalid signature or certificate")
	CASE certificateExpired: Info("Valid signature but certificate expired")
	CASE certificateUntrusted: Info("Valid signature but trusted root "+  ...
		"of certificate not reliable")
END
Sintaxis
<Result> = CertificateCheckBufferSignatureFile(<File name> , <Signature buffer>)
<Result>: Integer
Result of signature check:
certificateExpired (3)Valid signature but expired certificate.
certificateInvalid (0)Invalid signature or certificate.
certificateOk (1)Trusted signature and certificate.
certificateUntrusted (4)Valid signature but untrusted certificate root.
<File name>: Character string
Full or relative name of the file on which the check must be performed.
<Signature buffer>: Buffer
Buffer containing the signature of the file. This buffer is returned by CertificateSignFile.
Observaciones
WEBDEV - Código Servidor

Managing certificates in WEBDEV

In order for the certificates to be visible to the site user, they must be installed on the server in the store of custom certificates of the Internet user.
Componente: wd300std.dll
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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