C++ Based OPC UA Client/Server SDK
1.6.1.391
|
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. | |
UaStatus | loadCertificate (const UaString &sPassword, 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... | |
OpcUa_Key | m_privateKey |
The private key. More... | |
int | m_keySize |
The size of the key in Bits. | |
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. | |
Data class for certificate configuration.
|
virtual |
Callback method to inform about errors during certificate validation.
Implements UaPkiProviderCertificateValidationCallback.
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.
OpcUa_Key CertificateConfiguration::m_privateKey |
The private key.
UaString CertificateConfiguration::m_sCertificateLocation |
Path and filename of the application instance certificate.