def callCertFindValue(self, nodeToAsk, nodeToFind):
        address = (nodeToAsk.ip, nodeToAsk.port)
        challenge = generate_challenge()
        try:
            private = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM,
                                                     self.priv_key,
                                                     '')
            signature = OpenSSL.crypto.sign(private,
                                            nodeToAsk.id.encode("hex").upper() + challenge,
                                            "sha256")
        except:
            logger(self.sourceNode, "RETNONE: Signing of certFindValue failed")
            return None
        d = self.find_value(address,
                           self.sourceNode.id,
                           nodeToFind.id,
                           challenge,
                           signature,
                           self.getOwnCert())
        return d.addCallback(self.handleCertCallResponse,
                            nodeToAsk,
                            challenge)
Asks 'nodeToAsk' for its certificate.
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/storage/twistedimpl/securedht/append_server.py/KademliaProtocolAppend.callCertFindValue