PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of Certificate variables
  • WLanguage functions that use the Certificate type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Certificate (Type of variable)
In french: Certificat
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 using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
WINDEVUser 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(MyCertificateName)
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 mode.
EndValidityDateDateTimeEnd date and time of certificate validity.
This property is available in read-only mode.
IssuerCharacter stringName of the certificate issuer ("Issued by" characteristic).
This property is available in read-only mode.
Versions 21 and later
FullIssuer
New in version 21
FullIssuer
FullIssuer
Character stringFull name of certificate issuer.
This property is available in read-only mode.
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 mode.
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 mode.
NameCharacter stringName of the person to whom the certificate is given.
This property is available in read-only mode.
SerialNumberCharacter stringSerial number of the certificate.
This property is available in read-only mode.
Versions 21 and later
Subject
New in version 21
Subject
Subject
Character stringText to identify the entity associated with the public key. For example: domain for which the certificate is issued and, depending on the type of certificate, information about the company that runs the site, validity period, etc.
This property is available in read-only mode.
Versions 26 and later
OIDUsage
New in version 26
OIDUsage
OIDUsage
Array of stringsList of OIDs of the applications that use this certificate.
This property is available in read-only mode.
Versions 26 and later
KeyUsage
New in version 26
KeyUsage
KeyUsage
Integer constantsExpected uses for this certificate:
  • certificateKeyEncipherment: Certificate used to encrypt a key.
  • certificateDataEncipherment: Certificate used to encrypt data.
  • certificateKeyExchange: Certificate used to exchange a key.
  • certificateNonRepudiation: Certificate used for non-repudiation.
  • certificateDigitalSignature: Certificate used for digital signatures.
  • certificateSignKey: Certificate used to sign a key.
This property is available in read-only mode.
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 mode.

WLanguage functions that use the Certificate type

The following functions are used to handle the Certificate variables:
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment