C++ Based OPC UA Client/Server SDK  1.5.5.355
CertificateConfiguration Class Reference

Data class for certificate configuration. More...

#include <certificateconfiguration.h>

Inherits ReferenceCounter, and UaPkiProviderCertificateValidationCallback.

Public Member Functions

 CertificateConfiguration ()
 Creates a CertificateConfiguration object.
 
bool isCertificateAvailable ()
 Checks if the certificate is available.
 
UaStatus loadCertificate (UaString &sError)
 Loads the certificate, certificate chain and private key into memory.
 
virtual bool certificateVerificationError (OpcUa_Void *pvVerifyContext, const UaByteString &certificateChain, OpcUa_StatusCode uVerificationResult, OpcUa_UInt32 uDepth)
 Callback method to inform about errors during certificate validation. More...
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter ()
 construction
 
virtual ~ReferenceCounter ()
 destruction
 

Public Attributes

bool m_isCertificateLoaded
 Flag indicating if the certificate is loaded.
 
UaByteStringArray m_certificateChainArray
 The certificate chain containing the server certificate used for this endpoint. More...
 
UaByteString m_certificateWithChain
 The application certificate with the complete chain if necessary. More...
 
UaByteString m_privateKey
 The private key. More...
 
UaString m_sCertificateLocation
 Path and filename of the application instance certificate. More...
 
UaString m_sPrivateKeyLocation
 Path and filename of the private key.
 
bool m_isOpenSSLStore
 Flag indicating if the OpenSSL file store is used.
 
bool m_createCertificate
 Flag indicating if the certificate should be generated if no certificate is available.
 
bool m_autoCompleteCertificateChain
 Try to automatically build the complete chain from the issuers list if the certificate is issued.
 
CertificateCreateSettings m_certificateCreateSetting
 Settings for the creation of a certificate.
 
UaUInt32Array m_endpointIndexList
 List of endpoints using the certificate.
 

Protected Member Functions

virtual ~CertificateConfiguration ()
 Destroys the CertificateConfiguration object.
 
void setCertificateStoreConfiguration (CertificateStoreConfiguration *pCertificateStoreConfiguration)
 Sets the trust list used with the certificate.
 

Detailed Description

Data class for certificate configuration.

Member Function Documentation

bool CertificateConfiguration::certificateVerificationError ( OpcUa_Void *  pvVerifyContext,
const UaByteString certificateChain,
OpcUa_StatusCode  uVerificationResult,
OpcUa_UInt32  uDepth 
)
virtual

Callback method to inform about errors during certificate validation.

Returns
true if a certificate validation error should be ignored, false otherwise. If an error is ignored, validation continues, otherwise verification will be stopped.

Implements UaPkiProviderCertificateValidationCallback.

Member Data Documentation

UaByteStringArray CertificateConfiguration::m_certificateChainArray

The certificate chain containing the server certificate used for this endpoint.

The issued certificate is the first element in the array. The rootCA certificate is the last element in the array. For self signed certificates this array has length 1.

UaByteString CertificateConfiguration::m_certificateWithChain

The application certificate with the complete chain if necessary.

UaByteString CertificateConfiguration::m_privateKey

The private key.

UaString CertificateConfiguration::m_sCertificateLocation

Path and filename of the application instance certificate.


The documentation for this class was generated from the following files: