Class: QgsAuthConfigSslServer

Configuration container for SSL server connection exceptions or overrides.

class qgis.core.QgsAuthConfigSslServer[source]

Bases: object

__init__()

Construct a default SSL server configuration

__init__(a0: QgsAuthConfigSslServer)
Parameters:

a0 (QgsAuthConfigSslServer)

configString(self) str[source]

Configuration as a concatenated string

Return type:

str

isNull(self) bool[source]

Whether configuration is null (missing components)

Return type:

bool

loadConfigString(self, config: str | None = '')[source]

Load concatenated string into configuration, e.g. from auth database

Parameters:

config (Optional[str] = '')

qtVersion(self) int[source]

Qt version when the configuration was made (SSL protocols may differ)

Return type:

int

setQtVersion(self, version: int)[source]

Sets Qt version when the configuration was made (SSL protocols may differ)

Parameters:

version (int)

setSslCertificate(self, cert: QSslCertificate)[source]

Sets server certificate object

Parameters:

cert (QSslCertificate)

setSslHostPort(self, hostport: str | None)[source]

Sets server host:port string

Parameters:

hostport (Optional[str])

setSslIgnoredErrorEnums(self, errors: Iterable[QSslError.SslError])[source]

Sets SSL server errors (as enum list) to ignore in connections

Parameters:

errors (Iterable[QSslError.SslError])

setSslPeerVerifyDepth(self, depth: int)[source]

Set number or SSL client’s peer to verify in connections

Note

When set to 0 = unlimited depth

Parameters:

depth (int)

setSslPeerVerifyMode(self, mode: QSslSocket.PeerVerifyMode)[source]

Sets SSL client’s peer verify mode to use in connections

Parameters:

mode (QSslSocket.PeerVerifyMode)

setSslProtocol(self, protocol: QSsl.SslProtocol)[source]

Sets SSL server protocol to use in connections

Parameters:

protocol (QSsl.SslProtocol)

setVersion(self, version: int)[source]

Sets version of the configuration (used for future upgrading)

Parameters:

version (int)

sslCertificate(self) QSslCertificate[source]

Server certificate object

Return type:

QSslCertificate

sslHostPort(self) str[source]

Server host:port string

Return type:

str

sslIgnoredErrorEnums(self) List[QSslError.SslError]

SSL server errors (as enum list) to ignore in connections

Return type:

List[QSslError.SslError]

sslIgnoredErrors(self) List[QSslError]

SSL server errors to ignore in connections

Return type:

List[QSslError]

sslPeerVerifyDepth(self) int[source]

Number or SSL client’s peer to verify in connections

Note

When set to 0 = unlimited depth

Return type:

int

sslPeerVerifyMode(self) QSslSocket.PeerVerifyMode[source]

SSL client’s peer verify mode to use in connections

Return type:

QSslSocket.PeerVerifyMode

sslProtocol(self) QSsl.SslProtocol[source]

SSL server protocol to use in connections

Return type:

QSsl.SslProtocol

version(self) int[source]

Version of the configuration (used for future upgrading)

Return type:

int