src/eric7/WebBrowser/Network/SslErrorExceptionsDialog.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
35 QWebEngineCertificateError.Type.SslPinnedKeyNotInCertificateChain: self.tr( 35 QWebEngineCertificateError.Type.SslPinnedKeyNotInCertificateChain: self.tr(
36 "The certificate did not match the built-in public" 36 "The certificate did not match the built-in public"
37 " keys pinned for the host name." 37 " keys pinned for the host name."
38 ), 38 ),
39 QWebEngineCertificateError.Type.CertificateCommonNameInvalid: self.tr( 39 QWebEngineCertificateError.Type.CertificateCommonNameInvalid: self.tr(
40 "The certificate's common name did not match the" " host name." 40 "The certificate's common name did not match the host name."
41 ), 41 ),
42 QWebEngineCertificateError.Type.CertificateDateInvalid: self.tr( 42 QWebEngineCertificateError.Type.CertificateDateInvalid: self.tr(
43 "The certificate is not valid at the current date" " and time." 43 "The certificate is not valid at the current date and time."
44 ), 44 ),
45 QWebEngineCertificateError.Type.CertificateAuthorityInvalid: self.tr( 45 QWebEngineCertificateError.Type.CertificateAuthorityInvalid: self.tr(
46 "The certificate is not signed by a trusted" " authority." 46 "The certificate is not signed by a trusted authority."
47 ), 47 ),
48 QWebEngineCertificateError.Type.CertificateContainsErrors: self.tr( 48 QWebEngineCertificateError.Type.CertificateContainsErrors: self.tr(
49 "The certificate contains errors." 49 "The certificate contains errors."
50 ), 50 ),
51 QWebEngineCertificateError.Type.CertificateNoRevocationMechanism: self.tr( 51 QWebEngineCertificateError.Type.CertificateNoRevocationMechanism: self.tr(
52 "The certificate has no mechanism for determining if" 52 "The certificate has no mechanism for determining if"
53 " it has been revoked." 53 " it has been revoked."
54 ), 54 ),
55 QWebEngineCertificateError.Type.CertificateUnableToCheckRevocation: self.tr( 55 QWebEngineCertificateError.Type.CertificateUnableToCheckRevocation: self.tr(
56 "Revocation information for the certificate is" " not available." 56 "Revocation information for the certificate is not available."
57 ), 57 ),
58 QWebEngineCertificateError.Type.CertificateRevoked: self.tr( 58 QWebEngineCertificateError.Type.CertificateRevoked: self.tr(
59 "The certificate has been revoked." 59 "The certificate has been revoked."
60 ), 60 ),
61 QWebEngineCertificateError.Type.CertificateInvalid: self.tr( 61 QWebEngineCertificateError.Type.CertificateInvalid: self.tr(
62 "The certificate is invalid." 62 "The certificate is invalid."
63 ), 63 ),
64 QWebEngineCertificateError.Type.CertificateWeakSignatureAlgorithm: self.tr( 64 QWebEngineCertificateError.Type.CertificateWeakSignatureAlgorithm: self.tr(
65 "The certificate is signed using a weak signature" " algorithm." 65 "The certificate is signed using a weak signature algorithm."
66 ), 66 ),
67 QWebEngineCertificateError.Type.CertificateNonUniqueName: self.tr( 67 QWebEngineCertificateError.Type.CertificateNonUniqueName: self.tr(
68 "The host name specified in the certificate is" " not unique." 68 "The host name specified in the certificate is not unique."
69 ), 69 ),
70 QWebEngineCertificateError.Type.CertificateWeakKey: self.tr( 70 QWebEngineCertificateError.Type.CertificateWeakKey: self.tr(
71 "The certificate contains a weak key." 71 "The certificate contains a weak key."
72 ), 72 ),
73 QWebEngineCertificateError.Type.CertificateNameConstraintViolation: self.tr( 73 QWebEngineCertificateError.Type.CertificateNameConstraintViolation: self.tr(
74 "The certificate claimed DNS names that are in" 74 "The certificate claimed DNS names that are in"
75 " violation of name constraints." 75 " violation of name constraints."
76 ), 76 ),
77 QWebEngineCertificateError.Type.CertificateValidityTooLong: self.tr( 77 QWebEngineCertificateError.Type.CertificateValidityTooLong: self.tr(
78 "The certificate has a validity period that is" " too long." 78 "The certificate has a validity period that is too long."
79 ), 79 ),
80 QWebEngineCertificateError.Type.CertificateTransparencyRequired: self.tr( 80 QWebEngineCertificateError.Type.CertificateTransparencyRequired: self.tr(
81 "Certificate Transparency was required for this" 81 "Certificate Transparency was required for this"
82 " connection, but the server did not provide" 82 " connection, but the server did not provide"
83 " information that complied with the policy." 83 " information that complied with the policy."
90 ), 90 ),
91 QWebEngineCertificateError.Type.SslObsoleteVersion: self.tr( 91 QWebEngineCertificateError.Type.SslObsoleteVersion: self.tr(
92 "The connection uses an obsolete version of SSL/TLS." 92 "The connection uses an obsolete version of SSL/TLS."
93 ), 93 ),
94 QWebEngineCertificateError.Type.CertificateSymantecLegacy: self.tr( 94 QWebEngineCertificateError.Type.CertificateSymantecLegacy: self.tr(
95 "The certificate is a legacy Symantec one that's no" " longer valid." 95 "The certificate is a legacy Symantec one that's no longer valid."
96 ), 96 ),
97 } 97 }
98 98
99 for host, errors in errorsDict.items(): 99 for host, errors in errorsDict.items():
100 itm = QTreeWidgetItem(self.errorsTree, [host]) 100 itm = QTreeWidgetItem(self.errorsTree, [host])

eric ide

mercurial