code: def verifychain_from_capath(self, capath, untrusted_file=None):
          
          cmd = ["openssl", "verify", "-CApath", capath]
          if untrusted_file:
              cmd += ["-untrusted", untrusted_file]
          try:
              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")
docs: 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)