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.
This pull request moves functions from
System.X509.Unix
intoData.X509.CertificateStore
and exportsData.X509.CertificateStore.readCertificateStore :: FilePath -> IO (Maybe CertificateStore)
.readCertificateStore
reads given path (file or directory) intoCertificateStore
. This makes it easy and convenient to read CA bundle files.System.X509.Unix
is also modified to useData.X509.CertificateStore.readCertificateStore
.