(self, capath, untrusted_file=None)
return cmdres.endswith("\nOK\n") or cmdres.endswith(": OK\n")
Does the same job as .verifychain_from_cafile() but using the list
        of anchors in capath directory. The directory should contain
        certificates files in PEM format with associated links as
        created using c_rehash utility (man c_rehash).

        As for .verifychain_from_cafile(), a list of untrusted certificates
        can be passed as a file (concatenation of the certificates in
        PEM format)
Does the same job as .verifychain_from_cafile() but using the list
        of anchors in capath directory. The directory should contain
        certificates files in PEM format with associated links as
        created using c_rehash utility (man c_rehash).
Does the same job as . verifychain_from_cafile () but using the list of anchors in capath directory . The directory should contain certificates files in PEM format with associated links as created using c_rehash utility ( man c_rehash ) .
def verifychain_from_capath(self, capath, untrusted_file=None):
        """
        Does the same job as .verifychain_from_cafile() but using the list
        of anchors in capath directory. The directory should contain
        certificates files in PEM format with associated links as
        created using c_rehash utility (man c_rehash).

        As for .verifychain_from_cafile(), a list of untrusted certificates
        can be passed as a file (concatenation of the certificates in
        PEM format)
        """
        u = ""
        if untrusted_file:
            u = "-untrusted %s" % untrusted_file
        try:
            cmd = "openssl verify -CApath %s %s " % (capath, 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_capath ( self , capath , untrusted_file = None ) : u = "" if untrusted_file : u = "-untrusted %s" % untrusted_file try : cmd = "openssl verify -CApath %s %s " % ( capath , 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" )