def storeCert(self, certString, id):
        try:
            cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM,
                                                  certString)
            store_ctx = OpenSSL.crypto.X509StoreContext(self.trustedStore,
                                                       cert)
            store_ctx.verify_certificate()
        except:
            logger(self.sourceNode,
                  "The certificate for {} is not signed "
                  "by a trusted CA!".format(id))
            return
        exists = self.storage.get(digest("{}cert".format(id)))
        if not exists[0]:
            self.storage[digest("{}cert".format(id))] = certString
            name_dir = os.path.join(self.cert_conf["CA_default"]["runtimes_dir"], self.name)
            file = open(os.path.join(name_dir, "others", "{}.pem".format(id)), 'w')
            file.write(certString)
            file.close()
Request a relayout of the proxy widget.
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/storage/twistedimpl/securedht/append_server.py/KademliaProtocolAppend.storeCert--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_constraints_widget.py/QtConstraintsWidget.request_relayout