haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

Read file or directory into CertificateStore #71

Closed oherrala closed 8 years ago

oherrala commented 8 years ago

This pull request moves functions from System.X509.Unix into Data.X509.CertificateStore and exports Data.X509.CertificateStore.readCertificateStore :: FilePath -> IO (Maybe CertificateStore).

readCertificateStore reads given path (file or directory) into CertificateStore. This makes it easy and convenient to read CA bundle files.

System.X509.Unix is also modified to use Data.X509.CertificateStore.readCertificateStore.