QOpcUaPkiConfiguration#

QOpcUaPkiConfiguration defines the PKI configuration of the application. More

Synopsis#

Functions#

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);
class PySide6.QtOpcUa.QOpcUaPkiConfiguration#

PySide6.QtOpcUa.QOpcUaPkiConfiguration(other)

Parameters:

otherPySide6.QtOpcUa.QOpcUaPkiConfiguration

Default constructs a PKI configuration with no parameters set.

Constructs a QOpcUaPkiConfiguration from other.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.applicationIdentity()#
Return type:

PySide6.QtOpcUa.QOpcUaApplicationIdentity

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.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.clientCertificateFile()#
Return type:

str

Returns the file path of the application’s client certificate.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.isKeyAndCertificateFileSet()#
Return type:

bool

Returns true if the private key file and client certificate file are set.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.isPkiValid()#
Return type:

bool

Return true if the public key information required to validate the server certificate is set.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.issuerListDirectory()#
Return type:

str

Returns the path of the intermediate issuer list directory.

These issuers will not be trusted.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.issuerRevocationListDirectory()#
Return type:

str

Returns the path of the intermediate issuer revocation list directory.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.privateKeyFile()#
Return type:

str

Returns the file path of the application’s private key.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.revocationListDirectory()#
Return type:

str

Returns the path of the certificate revocation list directory.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.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.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.setIssuerListDirectory(value)#
Parameters:

value – str

Sets the path of the intermediate issuer list directory to value.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.setIssuerRevocationListDirectory(value)#
Parameters:

value – str

Sets the path of the intermediate issuer revocation list directory to value.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.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

privateKeyFile()

PySide6.QtOpcUa.QOpcUaPkiConfiguration.setRevocationListDirectory(value)#
Parameters:

value – str

Sets the path of the certificate revocation list directory to value.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.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.

PySide6.QtOpcUa.QOpcUaPkiConfiguration.trustListDirectory()#
Return type:

str

Returns the folder of the certificate trust list.