#include <uapkiprovider.h>
Public Member Functions | |
UaPkiProviderOpenSSL (UaString &sCertificateLocation, UaString &sCertificateRevocationListLocation, UaString &sCertificateTrustListLocation) | |
UaPkiProviderOpenSSL (UaPkiProviderOpenSSL *pOther) | |
~UaPkiProviderOpenSSL () | |
UaStatus | openCertificateStore () |
UaStatus | closeCertificateStore () |
UaStatus | loadCertificate (UaString &sCertificateName, UaByteString &certificate) |
UaStatus | loadPrivateKey (UaString &sPrivateKeyName, OpcUa_P_FileFormat fileFormat, UaString &sPassword, UaByteString &privateKey) |
UaPkiProviderOpenSSL::UaPkiProviderOpenSSL | ( | UaString & | sCertificateLocation, | |
UaString & | sCertificateRevocationListLocation, | |||
UaString & | sCertificateTrustListLocation | |||
) |
construction
sCertificateLocation | the location of the certificates. | |
sCertificateRevocationListLocation | the loc<ation of the revoced certificates. | |
sCertificateTrustListLocation | all trusted certificates. |
UaPkiProviderOpenSSL::UaPkiProviderOpenSSL | ( | UaPkiProviderOpenSSL * | pOther | ) |
construction
pOther | Pointer to native UaPkiProviderOpenSSL structure. |
UaPkiProviderOpenSSL::~UaPkiProviderOpenSSL | ( | ) |
destruction
UaStatus UaPkiProviderOpenSSL::openCertificateStore | ( | ) |
Attempts to open the certificate store.
UaStatus UaPkiProviderOpenSSL::closeCertificateStore | ( | ) |
Close the certificate store.
UaStatus UaPkiProviderOpenSSL::loadCertificate | ( | UaString & | sCertificateName, | |
UaByteString & | certificate | |||
) |
Load a certificate from the certificate store.
sCertificateName | The passed in name of the certificate. | |
certificate | The passed in certificate. |
Get server certificate
UaStatus UaPkiProviderOpenSSL::loadPrivateKey | ( | UaString & | sPrivateKeyName, | |
OpcUa_P_FileFormat | fileFormat, | |||
UaString & | sPassword, | |||
UaByteString & | privateKey | |||
) |
Load a private key from the certificate store.
sPrivateKeyName | the name of the private key. | |
fileFormat | the actual used file format. | |
sPassword | the password string. | |
privateKey | the private key. |
Get server certificate