Class: QgsPkiConfigBundle

class qgis.core.QgsPkiConfigBundle

Bases: sip.wrapper

Storage set for constructed SSL certificate, key, associated with an authentication config

QgsPkiConfigBundle(config: QgsAuthMethodConfig, cert: QSslCertificate, certkey: QSslKey, cachain: Iterable[QSslCertificate] = []) Construct a bundle from existing PKI components and authentication method configuration

Parameters
  • config – Authentication method configuration

  • cert – Certificate to store in bundle

  • certkey – Private key to store in bundle

  • cachain – list of CA certificates

QgsPkiConfigBundle(QgsPkiConfigBundle)

Methods

caChain

caChain return the CA chain

clientCert

Client certificate object

clientCertKey

Private key object

config

Authentication method configuration

isValid

Whether the bundle is valid

setCaChain

setCaChain set the CA chain

setClientCert

Sets client certificate object

setClientCertKey

Sets private key object

setConfig

Sets authentication method configuration

caChain(self) List[QSslCertificate]

caChain return the CA chain

Return type

List[QSslCertificate]

Returns

list of CA certificates

clientCert(self) QSslCertificate

Client certificate object

Return type

QSslCertificate

clientCertKey(self) QSslKey

Private key object

Return type

QSslKey

config(self) QgsAuthMethodConfig

Authentication method configuration

Return type

QgsAuthMethodConfig

isValid(self) bool

Whether the bundle is valid

Return type

bool

setCaChain(self, caChain: Iterable[QSslCertificate])

setCaChain set the CA chain

Parameters

caChain (Iterable[QSslCertificate]) –

setClientCert(self, cert: QSslCertificate)

Sets client certificate object

Parameters

cert (QSslCertificate) –

setClientCertKey(self, certkey: QSslKey)

Sets private key object

Parameters

certkey (QSslKey) –

setConfig(self, config: QgsAuthMethodConfig)

Sets authentication method configuration

Parameters

config (QgsAuthMethodConfig) –