(self, cafile, untrusted_file=None)
return cmdres.endswith("\nOK\n") or cmdres.endswith(": OK\n")
Does the same job as .verifychain() but using the list of anchors
        from the cafile. This is useful (because more efficient) if
        you have a lot of certificates to verify do it that way: it
        avoids the creation of a cafile from anchors at each call.

        As for .verifychain(), a list of untrusted certificates can be
        passed (as a file, this time)
Does the same job as .verifychain() but using the list of anchors
        from the cafile. This is useful (because more efficient) if
        you have a lot of certificates to verify do it that way: it
        avoids the creation of a cafile from anchors at each call.
Does the same job as . verifychain () but using the list of anchors from the cafile . This is useful ( because more efficient ) if you have a lot of certificates to verify do it that way : it avoids the creation of a cafile from anchors at each call .
def verifychain_from_cafile(self, cafile, untrusted_file=None):
        """
        Does the same job as .verifychain() but using the list of anchors
        from the cafile. This is useful (because more efficient) if
        you have a lot of certificates to verify do it that way: it
        avoids the creation of a cafile from anchors at each call.

        As for .verifychain(), a list of untrusted certificates can be
        passed (as a file, this time)
        """
        u = ""
        if untrusted_file:
            u = "-untrusted %s" % untrusted_file
        try:
            cmd = "openssl verify -CAfile %s %s " % (cafile, u)
            pemcert = self.output(fmt="PEM")
            cmdres = self._apply_ossl_cmd(cmd, pemcert)
        except:
            return False
        return cmdres.endswith("\nOK\n") or cmdres.endswith(": OK\n")
def verifychain_from_cafile ( self , cafile , untrusted_file = None ) : u = "" if untrusted_file : u = "-untrusted %s" % untrusted_file try : cmd = "openssl verify -CAfile %s %s " % ( cafile , u ) pemcert = self . output ( fmt = "PEM" ) cmdres = self . _apply_ossl_cmd ( cmd , pemcert ) except : return False return cmdres . endswith ( "\nOK\n" ) or cmdres . endswith ( ": OK\n" )