- class QOpcUaPkiConfiguration¶
QOpcUaPkiConfiguration
defines the PKI configuration of the application. More…Synopsis¶
Methods¶
def
__init__()
def
isPkiValid()
def
privateKeyFile()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This info must be configured using
setPkiConfiguration
. The used paths and files must be created beforehand.QOpcUaPkiConfiguration pkiConfig; const QString pkiDir = QCoreApplication::applicationDirPath() + "/pki"; pkiConfig.setClientCertificateFile(pkiDir + "/own/certs/application.der"); pkiConfig.setPrivateKeyFile(pkiDir + "/own/private/application.pem"); pkiConfig.setTrustListDirectory(pkiDir + "/trusted/certs"); pkiConfig.setRevocationListDirectory(pkiDir + "/trusted/crl"); pkiConfig.setIssuerListDirectory(pkiDir + "/issuers/certs"); pkiConfig.setIssuerRevocationListDirectory(pkiDir + "/issuers/crl"); client->setPkiConfiguration(pkiConfig);
- __init__()¶
Default constructs a PKI configuration with no parameters set.
- __init__(other)
- Parameters:
other –
QOpcUaPkiConfiguration
Constructs a
QOpcUaPkiConfiguration
fromother
.- applicationIdentity()¶
- Return type:
Returns an application identity based on the application’s client certificate.
The application’s identity has to match the used certificate. The returned application identity is prefilled by using information of the configured client certificate.
- clientCertificateFile()¶
- Return type:
str
Returns the file path of the application’s client certificate.
See also
- isKeyAndCertificateFileSet()¶
- Return type:
bool
Returns true if the private key file and client certificate file are set.
- isPkiValid()¶
- Return type:
bool
Return true if the public key information required to validate the server certificate is set.
- issuerListDirectory()¶
- Return type:
str
Returns the path of the intermediate issuer list directory.
These issuers will not be trusted.
See also
- issuerRevocationListDirectory()¶
- Return type:
str
Returns the path of the intermediate issuer revocation list directory.
See also
- privateKeyFile()¶
- Return type:
str
Returns the file path of the application’s private key.
See also
- revocationListDirectory()¶
- Return type:
str
Returns the path of the certificate revocation list directory.
See also
- setClientCertificateFile(value)¶
- Parameters:
value – str
Sets the file path of the application’s client certificate to
value
.This file has to be in X509 DER format.
See also
- setIssuerListDirectory(value)¶
- Parameters:
value – str
Sets the path of the intermediate issuer list directory to
value
.See also
- setIssuerRevocationListDirectory(value)¶
- Parameters:
value – str
Sets the path of the intermediate issuer revocation list directory to
value
.See also
- setPrivateKeyFile(value)¶
- Parameters:
value – str
Sets the file path of the application’s private key to
value
.This file has to be in X509 PEM format.
See also
- setRevocationListDirectory(value)¶
- Parameters:
value – str
Sets the path of the certificate revocation list directory to
value
.See also
- setTrustListDirectory(value)¶
- Parameters:
value – str
Sets the path of the certificate trust list directory to
value
.All certificates in this directory will be trusted. Certificates have to be in X509 DER format.
See also
- trustListDirectory()¶
- Return type:
str
Returns the folder of the certificate trust list.
See also