QSslError¶

PyQt5.QtNetwork.QSslError

Description¶

The QSslError class provides an SSL error.

QSslError provides a simple API for managing errors during QSslSocket’s SSL handshake.

Enums¶

SslError

Describes all recognized errors that can occur during an SSL handshake.

See also

errorString().

Member

Value

Description

AuthorityIssuerSerialNumberMismatch

TODO

TODO

CertificateBlacklisted

TODO

TODO

CertificateExpired

TODO

TODO

CertificateNotYetValid

TODO

TODO

CertificateRejected

TODO

TODO

CertificateRevoked

TODO

TODO

CertificateSignatureFailed

TODO

TODO

CertificateStatusUnknown

TODO

TODO

CertificateUntrusted

TODO

TODO

HostNameMismatch

TODO

TODO

InvalidCaCertificate

TODO

TODO

InvalidNotAfterField

TODO

TODO

InvalidNotBeforeField

TODO

TODO

InvalidPurpose

TODO

TODO

NoError

TODO

TODO

NoPeerCertificate

TODO

TODO

NoSslSupport

TODO

TODO

OcspInternalError

TODO

TODO

OcspMalformedRequest

TODO

TODO

OcspMalformedResponse

TODO

TODO

OcspNoResponseFound

TODO

TODO

OcspResponseCannotBeTrusted

TODO

TODO

OcspResponseCertIdUnknown

TODO

TODO

OcspResponseExpired

TODO

TODO

OcspSigRequred

TODO

TODO

OcspStatusUnknown

TODO

TODO

OcspTryLater

TODO

TODO

OcspUnauthorized

TODO

TODO

PathLengthExceeded

TODO

TODO

SelfSignedCertificate

TODO

TODO

SelfSignedCertificateInChain

TODO

TODO

SubjectIssuerMismatch

TODO

TODO

UnableToDecodeIssuerPublicKey

TODO

TODO

UnableToDecryptCertificateSignature

TODO

TODO

UnableToGetIssuerCertificate

TODO

TODO

UnableToGetLocalIssuerCertificate

TODO

TODO

UnableToVerifyFirstCertificate

TODO

TODO

UnspecifiedError

TODO

TODO

Methods¶

__init__()

Constructs a QSslError object with no error and default certificate.


__init__(SslError)

Constructs a QSslError object. The argument specifies the error that occurred.


__init__(QSslError)

Constructs an identical copy of other.


__init__(SslError, QSslCertificate)

Constructs a QSslError object. The two arguments specify the error that occurred, and which certificate the error relates to.

See also

QSslCertificate.


certificate() → QSslCertificate

Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.

See also

error(), errorString().


__eq__(QSslError) → bool

TODO


error() → SslError

Returns the type of the error.


errorString() → str

Returns a short localized human-readable description of the error.

See also

error(), certificate().


__hash__() → int

TODO


__ne__(QSslError) → bool

TODO


swap(QSslError)

TODO