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

library for returning x509.CertPool #141

Open
adamdecaf opened this issue Feb 8, 2018 · 0 comments
Open

library for returning x509.CertPool #141

adamdecaf opened this issue Feb 8, 2018 · 0 comments
Labels

Comments

@adamdecaf
Copy link
Owner

adamdecaf commented Feb 8, 2018

crypto/x509 in Go has a CertPool struct which is used by many other functions. It would be nice to offer a CertPool from a whitelist.

I'm thinking something like the following:

// CertPool returns an x509.CertPool which has had a whitelist applied. 
// The initial set of certificates comes from the system's store. 
func CertPool(wh whitelist.Whitelist) (*x509.CertPool, error)

There's a similar package which embeds certificates: https://github.com/certifi/gocertifi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant