137 self.__bookmarkButton.setVisible(True) |
138 self.__bookmarkButton.setVisible(True) |
138 |
139 |
139 if ok and self.__browser.url().scheme() == "https": |
140 if ok and self.__browser.url().scheme() == "https": |
140 sslInfo = self.__browser.page().getSslInfo() |
141 sslInfo = self.__browser.page().getSslInfo() |
141 if sslInfo is not None: |
142 if sslInfo is not None: |
142 org = sslInfo.subjectInfo(QSslCertificate.Organization) |
143 org = Utilities.decodeString( |
|
144 sslInfo.subjectInfo(QSslCertificate.Organization)) |
143 if org == "": |
145 if org == "": |
144 cn = sslInfo.subjectInfo(QSslCertificate.CommonName) |
146 cn = Utilities.decodeString( |
|
147 sslInfo.subjectInfo(QSslCertificate.CommonName)) |
145 if cn != "": |
148 if cn != "": |
146 org = cn.split(".", 1)[1] |
149 org = cn.split(".", 1)[1] |
147 if org == "": |
150 if org == "": |
148 org = self.trUtf8("Unknown") |
151 org = self.trUtf8("Unknown") |
149 self.__sslLabel.setText(" {0} ".format(org)) |
152 self.__sslLabel.setText(" {0} ".format(org)) |