144 if ok and \ |
144 if ok and \ |
145 self.__browser.url().scheme() == "https" and \ |
145 self.__browser.url().scheme() == "https" and \ |
146 QSslCertificate is not None: |
146 QSslCertificate is not None: |
147 sslInfo = self.__browser.page().getSslInfo() |
147 sslInfo = self.__browser.page().getSslInfo() |
148 if sslInfo is not None: |
148 if sslInfo is not None: |
149 org = Utilities.decodeString( |
149 org = Qt.escape(Utilities.decodeString( |
150 sslInfo.subjectInfo(QSslCertificate.Organization)) |
150 sslInfo.subjectInfo(QSslCertificate.Organization))) |
151 if org == "": |
151 if org == "": |
152 cn = Utilities.decodeString( |
152 cn = Qt.escape(Utilities.decodeString( |
153 sslInfo.subjectInfo(QSslCertificate.CommonName)) |
153 sslInfo.subjectInfo(QSslCertificate.CommonName))) |
154 if cn != "": |
154 if cn != "": |
155 org = cn.split(".", 1)[1] |
155 org = cn.split(".", 1)[1] |
156 if org == "": |
156 if org == "": |
157 org = self.trUtf8("Unknown") |
157 org = self.trUtf8("Unknown") |
158 self.__sslLabel.setText(" {0} ".format(org)) |
158 self.__sslLabel.setText(" {0} ".format(org)) |