-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | X.509 collection accessing and storing methods
--   
--   X.509 collection accessing and storing methods for certificate, crl,
--   exception list
@package x509-store
@version 1.6.2


module Data.X509.Memory
readKeyFileFromMemory :: ByteString -> [PrivKey]
readSignedObjectFromMemory :: (ASN1Object a, Eq a, Show a) => ByteString -> [SignedExact a]
pemToKey :: [Maybe PrivKey] -> PEM -> [Maybe PrivKey]

module Data.X509.File

-- | return all the signed objects in a file.
--   
--   (only one type at a time).
readSignedObject :: (ASN1Object a, Eq a, Show a) => FilePath -> IO [SignedExact a]

-- | return all the public key that were successfully read from a file.
readKeyFile :: FilePath -> IO [PrivKey]

module Data.X509.CertificateStore

-- | A Collection of certificate or store of certificates.
data CertificateStore

-- | Create a certificate store out of a list of X509 certificate
makeCertificateStore :: [SignedCertificate] -> CertificateStore

-- | 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).
readCertificateStore :: FilePath -> IO (Maybe CertificateStore)

-- | Find a certificate using the subject distinguished name
findCertificate :: DistinguishedName -> CertificateStore -> Maybe SignedCertificate

-- | List all certificates in a store
listCertificates :: CertificateStore -> [SignedCertificate]
instance GHC.Base.Monoid Data.X509.CertificateStore.CertificateStore
