PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Certificate variables
  • Functions that use the Certificate type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Certificate (Type of variable)
In French: Certificat (Type de variable)
The Certificate type is used to handle:
  • the certificates used to sign the strings or the files.
  • the certificates used to sign the emails. In this case, a Certificate variable is used by the Email variables.
  • Versions 19 and later
    the certificates used for the Push notifications sent to iOS applications.
    New in version 19
    the certificates used for the Push notifications sent to iOS applications.
    the certificates used for the Push notifications sent to iOS applications.
The characteristics of a certificate can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
WINDEVReports and QueriesUser code (UMC)
MyCertificate is Certificate

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

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

Trace(MyCertificate..Issuer)
Trace(MyCertificate..StartValidityDate)
Trace(MyCertificate..EndValidityDate)
Trace(MyCertificate..Reliability)
Trace(MyCertificate..Name)
Trace(MyCertificate..SerialNumber)
Trace(MyCertificate..ValidForSignature)
Remarks

Properties specific to the description of Certificate variables

The following properties can be used to handle a certificate:
Property nameType usedEffect
StartValidityDateDateTimeStart date and time of certificate validity.
This property is available in read-only.
EndValidityDateDateTimeEnd date and time of certificate validity.
This property is available in read-only.
IssuerCharacter stringName of the certificate issuer ("Issued by" characteristic).
This property is available in read-only.
Versions 21 and later
FullIssuer
New in version 21
FullIssuer
FullIssuer
Character stringFull name of certificate issuer.
This property is available in read-only.
Versions 21 and later
ThumbPrint
New in version 21
ThumbPrint
ThumbPrint
Character stringUnique number associated with the certificate. This number is automatically created when creating a certificate.
This property is available in read-only.
ReliabilityInteger constantTrust level of the certificate corresponding to one of the following constants:
  • certificateExpired: the expiration date of the certificate is exceeded.
  • certificateInvalid: the certificate is invalid.
  • certificateUntrusted: the certificate cannot be trusted.
  • certificateOk: the certificate can be trusted.
This property is available in read-only.
NameCharacter stringName of the person to whom the certificate is given.
This property is available in read-only.
SerialNumberCharacter stringSerial number of the certificate.
This property is available in read-only.
Versions 21 and later
Subject
New in version 21
Subject
Subject
Character stringObject for using the public key.
ValidForSignatureBooleanThis property is used to find out whether the certificate owns a private key as well as all the characteristics required to perform a signature.
This property is available in read-only.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the Certificate type

The following functions are used to handle the Certificate variables:
Versions 16 and later
CertificateExtract
New in version 16
CertificateExtract
CertificateExtract
Extracts a certificate from a signature buffer or from a print duplicate.
Versions 16 and later
CertificateOpenProperties
New in version 16
CertificateOpenProperties
CertificateOpenProperties
Opens the Windows window used to find out the properties of a certificate.
Versions 16 and later
CertificateSelect
New in version 16
CertificateSelect
CertificateSelect
Opens a window for selecting the certificates. The listed certificates are the certificates installed in the personal store.
Versions 18 and later
CertificateSignExecutable
New in version 18
CertificateSignExecutable
CertificateSignExecutable
Signs an executable file with a certificate.
Versions 16 and later
CertificateSignFile
New in version 16
CertificateSignFile
CertificateSignFile
Creates the signature of a file. This signature can be stored in a Buffer variable or in a text file.
Versions 16 and later
CertificateSignString
New in version 16
CertificateSignString
CertificateSignString
Creates the signature of a character string.
Versions 19 and later
NotifPushSend
New in version 19
NotifPushSend
NotifPushSend
Sends a push notification to a mobile device (iOS or Android).
Minimum required version
  • Version 16
This page is also available for…
Comments
XADES-BES
Se puede firmar en formato XADES-BES ?
JAVIER / Javier
Dec. 02 2017
Exemplo pegar Dados Certificado
//Example catch certificate data
//Exemple certificat de capture de données

_certificado is Certificate
_certificado = CertificateSelect()

EDT_DadosDoCertificado="" // Limpando edt do certificado
EDT_DadosDoCertificado+="=====NOVOS WINDEV 21 ===============" //Novos Windev 21//new windev 21//
EDT_DadosDoCertificado+=CR+"Nome Completo Emissor [ "+_certificado.FullIssuer+" ] "
EDT_DadosDoCertificado+=CR+"Numero Associado ["+_certificado.Empreinte+" ]" // Em Frances // Em Ingles (Fingerprint)
EDT_DadosDoCertificado+=CR+"-Objeto [ "+_certificado.Objet+" ]" // Em Frances // Em Ingles ( object )
EDT_DadosDoCertificado+=CR+"===== Já tinha Windev 20 ==============="
EDT_DadosDoCertificado+=CR+"Nome Resumido [ "+_certificado.Name+" ]"
EDT_DadosDoCertificado+=CR+"Inicio Validade [ +_certificado.StartValidityDate+" ]"
EDT_DadosDoCertificado+=CR+"Final Validade [ "+_certificado.EndValidityDate+" ]"
EDT_DadosDoCertificado+=CR+"Issuer- Emissora [ "+_certificado.Issuer+" ]"
EDT_DadosDoCertificado+=CR+"Reliability-Confianca [ "+_certificado.Reliability+" ]"
EDT_DadosDoCertificado+=CR+"Serial Numero [ "+_certificado.SerialNumber+" ]"
EDT_DadosDoCertificado+=CR+"Certificado Valido [ "+_certificado.ValidForSignature+" ]"
EDT_DadosDoCertificado+=CR+"Subject [ "+_certificado.Subject+" ]"
EDT_DadosDoCertificado+=CR+"Thumprint - Impressão Digital [ "+_certificado.ThumbPrint+" ]"
EDT_DadosDoCertificado+=CR+"======================================"
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/06/curso-windev-certificado-002.html
https://www.youtube.com/watch?v=XYWltoQ8u4Q


De matos AMARILDO
Jun. 16 2016