#include <uaclientsdk.h>
Public Member Functions | |
ClientSecurityInfo () | |
~ClientSecurityInfo () | |
UaStatusCode | initializePkiProviderOpenSSL (const UaString &sCertificateRevocationListLocation, const UaString &sCertificateTrustListLocation) |
UaStatusCode | loadClientCertificateOpenSSL (const UaString &sClientCertificateFile, const UaString &sClientPrivateKeyFile) |
OpcUa_Void * | pkiCfg () |
Public Attributes | |
UaString | sSecurityPolicy |
OpcUa_MessageSecurityMode | messageSecurityMode |
UaByteString | clientCertificate |
UaByteString | clientPrivateKey |
The ClientSecurityInfo class contains the securit related settings to create a secure channel.
UaClientSdk::ClientSecurityInfo::ClientSecurityInfo | ( | ) |
Constructs a client security info object with initial values
sSecurityPolicy = OpcUa_SecurityPolicy_None
messageSecurityMode = OpcUa_MessageSecurityMode_None
No PKI provider
UaClientSdk::ClientSecurityInfo::~ClientSecurityInfo | ( | ) |
Destroys the client security info object
UaStatusCode UaClientSdk::ClientSecurityInfo::initializePkiProviderOpenSSL | ( | const UaString & | sCertificateRevocationListLocation, |
const UaString & | sCertificateTrustListLocation | ||
) |
Initialize the PKI provider to use the file based OpenSSL certificate store.
[in] | sCertificateRevocationListLocation | Path of the revocation list location |
[in] | sCertificateTrustListLocation | Path of the certificate trust list directory. All certificates in this directory will be trusted |
UaStatusCode UaClientSdk::ClientSecurityInfo::loadClientCertificateOpenSSL | ( | const UaString & | sClientCertificate, |
const UaString & | sClientPrivateKey | ||
) |
Load client certificate and client private key using the file based OpenSSL certificate store.
[in] | sClientCertificate | Path and file name of the client certificate (public key) |
[in] | sClientPrivateKey | Path and file name of the client private key |
OpcUa_Void * UaClientSdk::ClientSecurityInfo::pkiCfg | ( | ) |
Internally used funciton to provide the PKI provider for the UA Stack
Client certificate (public key)
Client private key
OpcUa_MessageSecurityMode UaClientSdk::ClientSecurityInfo::messageSecurityMode |
The message security mode used for the connection. OpcUa_MessageSecurityMode_None OpcUa_MessageSecurityMode_Sign OpcUa_MessageSecurityMode_SignAndEncrypt
The name of the security policy used for the connection. OpcUa_SecurityPolicy_None "http://opcfoundation.org/UA/SecurityPolicy#None" for security disabled OpcUa_SecurityPolicy_Basic128Rsa15 "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" OpcUa_SecurityPolicy_Basic256 "http://opcfoundation.org/UA/SecurityPolicy#Basic256"