crypton-x509-store
Safe HaskellNone
LanguageHaskell2010

Data.X509.CertificateStore

Contents

Synopsis

Documentation

data CertificateStore Source #

A Collection of certificate or store of certificates. Several certificates may have the same subject, which is compared in its canonical form.

makeCertificateStore :: [SignedCertificate] -> CertificateStore Source #

Create a certificate store out of a list of X509 certificate

readCertificateStore :: FilePath -> IO (Maybe CertificateStore) Source #

Create certificate store by reading certificates from file or directory

This function can be used to read multiple certificates from either single file (multiple PEM formatted certificates concanated) or directory (one certificate per file, file names are hashes from certificate).

readCertificates :: FilePath -> IO [SignedCertificate] Source #

Queries

findCertificate :: DistinguishedName -> CertificateStore -> Maybe SignedCertificate Source #

Find a certificate using the subject distinguished name. If several certificates have the subject, the one added last is returned.

findCertificates :: DistinguishedName -> CertificateStore -> [SignedCertificate] Source #

Find all certificates with the subject distinguished name.

listCertificates :: CertificateStore -> [SignedCertificate] Source #

List all certificates in a store