Subgroup: Auth

Class: QgsAuthConfigSslServer

class qgis.core.QgsAuthConfigSslServer

Bases: sip.wrapper

Construct a default SSL server configuration

QgsAuthConfigSslServer(QgsAuthConfigSslServer)

Configuration container for SSL server connection exceptions or overrides

Methods

configString Configuration as a concatenated string
isNull Whether configuration is null (missing components)
loadConfigString Load concatenated string into configuration, e.
qtVersion Qt version when the configuration was made (SSL protocols may differ)
setQtVersion Set Qt version when the configuration was made (SSL protocols may differ)
setSslCertificate Set server certificate object
setSslHostPort Set server host:port string
setSslIgnoredErrorEnums Set SSL server errors (as enum list) to ignore in connections
setSslPeerVerifyDepth Set number or SSL client’s peer to verify in connections
setSslPeerVerifyMode Set SSL client’s peer verify mode to use in connections
setSslProtocol Set SSL server protocol to use in connections
setVersion Set version of the configuration (used for future upgrading)
sslCertificate Server certificate object
sslHostPort Server host:port string
sslIgnoredErrorEnums SSL server errors (as enum list) to ignore in connections
sslIgnoredErrors SSL server errors to ignore in connections
sslPeerVerifyDepth Number or SSL client’s peer to verify in connections
sslPeerVerifyMode SSL client’s peer verify mode to use in connections
sslProtocol SSL server protocol to use in connections
version Version of the configuration (used for future upgrading)

Signals

Attributes

configString(self) → str

Configuration as a concatenated string

isNull(self) → bool

Whether configuration is null (missing components)

loadConfigString(self, config: str = '')

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

qtVersion(self) → int

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

setQtVersion(self, version: int)

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

setSslCertificate(self, cert: QSslCertificate)

Set server certificate object

setSslHostPort(self, hostport: str)

Set server host:port string

setSslIgnoredErrorEnums(self, errors: object)

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

setSslPeerVerifyDepth(self, depth: int)

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

Note

When set to 0 = unlimited depth

setSslPeerVerifyMode(self, mode: QSslSocket.PeerVerifyMode)

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

setSslProtocol(self, protocol: QSsl.SslProtocol)

Set SSL server protocol to use in connections

setVersion(self, version: int)

Set version of the configuration (used for future upgrading)

sslCertificate(self) → QSslCertificate

Server certificate object

sslHostPort(self) → str

Server host:port string

sslIgnoredErrorEnums(self) → object

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

sslIgnoredErrors(self) → List[QSslError]

SSL server errors to ignore in connections

sslPeerVerifyDepth(self) → int

Number or SSL client’s peer to verify in connections

Note

When set to 0 = unlimited depth

sslPeerVerifyMode(self) → QSslSocket.PeerVerifyMode

SSL client’s peer verify mode to use in connections

sslProtocol(self) → QSsl.SslProtocol

SSL server protocol to use in connections

version(self) → int

Version of the configuration (used for future upgrading)