Table Of Contents

Previous topic

PySide.QtNetwork

Next topic

QNetworkProxy

QSsl

Detailed Description

The QSsl namespace declares enums common to all SSL classes in QtNetwork .
PySide.QtNetwork.QSsl.KeyType

Describes the two types of keys PySide.QtNetwork.QSslKey supports.

Constant Description
QSsl.PrivateKey A private key.
QSsl.PublicKey A public key.
PySide.QtNetwork.QSsl.KeyAlgorithm

Describes the different key algorithms supported by PySide.QtNetwork.QSslKey .

Constant Description
QSsl.Rsa The RSA algorithm.
QSsl.Dsa The DSA algorithm.
PySide.QtNetwork.QSsl.SslProtocol

Describes the protocol of the cipher.

Constant Description
QSsl.SslV3 SSLv3
QSsl.SslV2 SSLv2
QSsl.TlsV1 TLSv1
QSsl.UnknownProtocol The cipher’s protocol cannot be determined.
QSsl.AnyProtocol The socket understands SSLv2, SSLv3, and TLSv1. This value is used by PySide.QtNetwork.QSslSocket only.
QSsl.TlsV1SslV3 On the client side, this will send a TLS 1.0 Client Hello, enabling TLSv1 and SSLv3 connections. On the server side, this will enable both SSLv3 and TLSv1 connections.
QSsl.SecureProtocols The default option, using protocols known to be secure; currently behaves like TlsV1SslV3 .

Note: most servers using SSL understand both versions (2 and 3), but it is recommended to use the latest version only for security reasons. However, SSL and TLS are not compatible with each other: if you get unexpected handshake failures, verify that you chose the correct setting for your protocol.

PySide.QtNetwork.QSsl.AlternateNameEntryType

Describes the key types for alternate name entries in PySide.QtNetwork.QSslCertificate .

Constant Description
QSsl.EmailEntry An email entry; the entry contains an email address that the certificate is valid for.
QSsl.DnsEntry A DNS host name entry; the entry contains a host name entry that the certificate is valid for. The entry may contain wildcards.
PySide.QtNetwork.QSsl.EncodingFormat

Describes supported encoding formats for certificates and keys.

Constant Description
QSsl.Pem The PEM format.
QSsl.Der The DER format.