Describes the two types of keys PySide.QtNetwork.QSslKey 支持。
| 常量 | 描述 |
|---|---|
| QSsl.PrivateKey | 私钥。 |
| QSsl.PublicKey | 公钥。 |
Describes the different key algorithms supported by PySide.QtNetwork.QSslKey .
| 常量 | 描述 |
|---|---|
| QSsl.Rsa | RSA 算法。 |
| QSsl.Dsa | DSA 算法。 |
Describes the protocol of the cipher.
| 常量 | 描述 |
|---|---|
| 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.
Describes the key types for alternate name entries in PySide.QtNetwork.QSslCertificate .
| 常量 | 描述 |
|---|---|
| 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. |
Describes supported encoding formats for certificates and keys.
| 常量 | 描述 |
|---|---|
| QSsl.Pem | PEM 格式。 |
| QSsl.Der | DER 格式。 |