ViewCertificate

(Engine-Level Function)

Description: Displays the standard system dialog of X.509 certificate properties.
Returns: Nothing
Usage: Script Only.
Function Groups: Certificates
Related to: AddCertificate | CheckCertificateChain | GetCertificateInfo |ListCertificates | MakeSelfSignedCertificate |RemoveCertificate |SetCertificateProperty |ViewCertificate
Format: ViewCertificate(MachineStore, StoreName Thumbprint [, Blob])
Parameters:  
MachineStore
Required Boolean. If TRUE (non-zero), attempts to find the certificate in a store in the Local Computer certificate hive. If FALSE (zero) attempts to find the certificate in a store in the Current User certificate hive.
StoreName
Required text. The name of the store in which to find the certificate.
ThumbPrint
Required. A binary buffer holding the SHA1 thumbprint of the certificate to display.
Blob
Optional. A buffer holding a DER-binary encoded certificate BLOB (binary large object) of the certificate to display. If this parameter is supplied, the other parameters are ignored.
Comments:

The operating system’s standard certificate properties dialog is displayed, allowing the user to examine the certificate properties in a familiar manner.

The thumbprint and certificate blob may be obtained from a number of different sources. For example, it may be transmitted over a communication protocol or be the output of another certificate function.

Example:

ViewCertificate(FALSE, “Trihedral OPCUA Client”, Thumbprint); 

or

ViewCertificate(FALSE, “Trihedral OPCUA Client”, Invalid, CertBlob);