PySide6.QtNetwork.QSslError

class QSslError

The QSslError class provides an SSL error. More

Synopsis

Methods

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

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

class SslError

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

Constant

Description

QSslError.SslError.NoError

QSslError.SslError.UnableToGetIssuerCertificate

QSslError.SslError.UnableToDecryptCertificateSignature

QSslError.SslError.UnableToDecodeIssuerPublicKey

QSslError.SslError.CertificateSignatureFailed

QSslError.SslError.CertificateNotYetValid

QSslError.SslError.CertificateExpired

QSslError.SslError.InvalidNotBeforeField

QSslError.SslError.InvalidNotAfterField

QSslError.SslError.SelfSignedCertificate

QSslError.SslError.SelfSignedCertificateInChain

QSslError.SslError.UnableToGetLocalIssuerCertificate

QSslError.SslError.UnableToVerifyFirstCertificate

QSslError.SslError.CertificateRevoked

QSslError.SslError.InvalidCaCertificate

QSslError.SslError.PathLengthExceeded

QSslError.SslError.InvalidPurpose

QSslError.SslError.CertificateUntrusted

QSslError.SslError.CertificateRejected

QSslError.SslError.SubjectIssuerMismatch

QSslError.SslError.AuthorityIssuerSerialNumberMismatch

QSslError.SslError.NoPeerCertificate

QSslError.SslError.HostNameMismatch

QSslError.SslError.UnspecifiedError

QSslError.SslError.NoSslSupport

QSslError.SslError.CertificateBlacklisted

QSslError.SslError.CertificateStatusUnknown

QSslError.SslError.OcspNoResponseFound

QSslError.SslError.OcspMalformedRequest

QSslError.SslError.OcspMalformedResponse

QSslError.SslError.OcspInternalError

QSslError.SslError.OcspTryLater

QSslError.SslError.OcspSigRequred

QSslError.SslError.OcspUnauthorized

QSslError.SslError.OcspResponseCannotBeTrusted

QSslError.SslError.OcspResponseCertIdUnknown

QSslError.SslError.OcspResponseExpired

QSslError.SslError.OcspStatusUnknown

See also

errorString()

__init__()

Constructs a QSslError object with no error and default certificate.

__init__(error)
Parameters:

errorSslError

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

__init__(other)
Parameters:

otherQSslError

Constructs an identical copy of other.

__init__(error, certificate)
Parameters:

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

See also

QSslCertificate

certificate()
Return type:

QSslCertificate

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

error()
Return type:

SslError

Returns the type of the error.

errorString()
Return type:

str

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

__ne__(other)
Parameters:

otherQSslError

Return type:

bool

Returns true if this error is not equal to other; otherwise returns false.

__eq__(other)
Parameters:

otherQSslError

Return type:

bool

Returns true if this error is equal to other; otherwise returns false.

swap(other)
Parameters:

otherQSslError

Swaps this error instance with other. This operation is very fast and never fails.