crypton-x509-store-1.6.12: X.509 collection accessing and storing methods

Safe Haskell | None
Language | Haskell2010

Data.X509.CertificateStore

Contents

- Queries

Synopsis

- data CertificateStore
- isEmptyCertificateStore :: CertificateStore -> Bool
- makeCertificateStore :: [SignedCertificate] -> CertificateStore
- readCertificateStore :: FilePath -> IO (Maybe CertificateStore)
- readCertificates :: FilePath -> IO [SignedCertificate]
- findCertificate :: DistinguishedName -> CertificateStore -> Maybe SignedCertificate
- listCertificates :: CertificateStore -> [SignedCertificate]

# Documentation

data CertificateStore Source #

A Collection of certificate or store of certificates.

#### Instances

Instances details

Monoid CertificateStore Source # |
Instance details Defined in Data.X509.CertificateStore Methods mempty :: CertificateStore Source # mappend :: CertificateStore -> CertificateStore -> CertificateStore Source # mconcat :: [CertificateStore] -> CertificateStore Source #
Semigroup CertificateStore Source # |
Instance details Defined in Data.X509.CertificateStore Methods (<>) :: CertificateStore -> CertificateStore -> CertificateStore Source # sconcat :: NonEmpty CertificateStore -> CertificateStore Source # stimes :: Integral b => b -> CertificateStore -> CertificateStore Source #

isEmptyCertificateStore :: CertificateStore -> Bool Source #

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

listCertificates :: CertificateStore -> [SignedCertificate] Source #

List all certificates in a store