126 caNew.append(cert) |
126 caNew.append(cert) |
127 if not errorStrings: |
127 if not errorStrings: |
128 return E5SslErrorHandler.SystemIgnored, False |
128 return E5SslErrorHandler.SystemIgnored, False |
129 |
129 |
130 errorString = '.</li><li>'.join(errorStrings) |
130 errorString = '.</li><li>'.join(errorStrings) |
131 ret = E5MessageBox.yesNo(None, |
131 ret = E5MessageBox.yesNo( |
|
132 None, |
132 self.trUtf8("SSL Errors"), |
133 self.trUtf8("SSL Errors"), |
133 self.trUtf8("""<p>SSL Errors for <br /><b>{0}</b>""" |
134 self.trUtf8("""<p>SSL Errors for <br /><b>{0}</b>""" |
134 """<ul><li>{1}</li></ul></p>""" |
135 """<ul><li>{1}</li></ul></p>""" |
135 """<p>Do you want to ignore these errors?</p>""")\ |
136 """<p>Do you want to ignore these errors?</p>""")\ |
136 .format(server, errorString), |
137 .format(server, errorString), |
140 caRet = False |
141 caRet = False |
141 if len(caNew) > 0: |
142 if len(caNew) > 0: |
142 certinfos = [] |
143 certinfos = [] |
143 for cert in caNew: |
144 for cert in caNew: |
144 certinfos.append(self.__certToString(cert)) |
145 certinfos.append(self.__certToString(cert)) |
145 caRet = E5MessageBox.yesNo(None, |
146 caRet = E5MessageBox.yesNo( |
|
147 None, |
146 self.trUtf8("Certificates"), |
148 self.trUtf8("Certificates"), |
147 self.trUtf8( |
149 self.trUtf8( |
148 """<p>Certificates:<br/>{0}<br/>""" |
150 """<p>Certificates:<br/>{0}<br/>""" |
149 """Do you want to accept all these certificates?""" |
151 """Do you want to accept all these certificates?""" |
150 """</p>""")\ |
152 """</p>""")\ |