Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read file or directory into CertificateStore #71

Merged
merged 3 commits into from
Oct 2, 2016
Merged

Read file or directory into CertificateStore #71

merged 3 commits into from
Oct 2, 2016

Conversation

oherrala
Copy link
Contributor

@oherrala oherrala commented Jul 7, 2016

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.

oherrala added a commit to ouspg/trytls that referenced this pull request Jul 11, 2016
This is first Haskell stub to support custom CA bundles given by
TryTLS runner. It required modification to Haskell's x509-store
package. Pull request about it can be found here:

haskell-tls/hs-certificate#71
oherrala added a commit to ouspg/trytls that referenced this pull request Jul 21, 2016
This is first Haskell stub to support custom CA bundles given by
TryTLS runner. It required modification to Haskell's x509-store
package. Pull request about it can be found here:

haskell-tls/hs-certificate#71
…tore

This is 100% code copied from System.X509.Unix and some documentation
added. This allows x509-store package user to specify custom file or
directory to read certificates from. The use case I'm considering is
reading custom CA certificate bundle.
Reading certificates from file or directory is useful (for example for
reading custom CA certificate bundles), so promote these functions
into Data.X509.CertificateStore.
@vincenthz vincenthz merged commit 207d9fe into haskell-tls:master Oct 2, 2016
@oherrala oherrala deleted the custom-ca-bundle-reading branch October 2, 2016 14:45
oherrala added a commit to ouspg/trytls that referenced this pull request Oct 2, 2016
Two good things merged into x509 package worth mentioning:

 * Certificate bundle reading was merged from pull request
   haskell-tls/hs-certificate#71

 * Certificate name validation was merged from pull request
   haskell-tls/hs-certificate#75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants