|
|
|
|
|
- Managing certificates in WEBDEV
CertificateCheckFileSignatureFile (Function) In french: CertificatVérifieFichierSignatureFichier Checks the correspondence between a signature and a file. The signature was kept as an external file. MyCertificate is Certificate
MyCertificate = CertificateSelect()
IF MyCertificate.Name = "" THEN
RETURN
END
IF MyCertificate.ValidForSignature = False THEN
Info("The selected certificate cannot be used to generate a signature.")
RETURN
END
bufSignature is Buffer
bufSignature = CertificateSignFile(FullFileName, MyCertificate, MySignatureFile)
SWITCH CertificateCheckFileSignatureFile(FullFileName, MySignatureFile)
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
Syntax
<Result> = CertificateCheckFileSignatureFile(<File name> , <Signature file>)
<Result>: Integer constant Result of signature check: | | certificateExpired | Valid signature but expired certificate. | certificateInvalid | Invalid signature or certificate. | certificateOk | Trusted signature and certificate. | certificateUntrusted | 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 file>: Character string Full or relative name of the external file containing the signature. This file is created by CertificateSignFile.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|