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

Export certificates into /usr/local/etc/openssl/certs #19

Open
johnbellone opened this issue Jan 11, 2018 · 3 comments
Open

Export certificates into /usr/local/etc/openssl/certs #19

johnbellone opened this issue Jan 11, 2018 · 3 comments

Comments

@johnbellone
Copy link

I was wondering if you would be opposed to accepting a patch that would export root certificates from the keychains to certs directory. This is needed for tools such as Vagrant to inject them into guest virtual machines.

@raggi
Copy link
Owner

raggi commented Jan 13, 2018

Vagrant can consume a cert.pem, can you explain more why you want this form?

@johnbellone
Copy link
Author

@raggi Absolutely!

The vagrant-ca-certificates plugin takes individual certificates and injects them into a running guest instance. It then uses the guest operating system mechanism to build the proper certificate bundle. So, for example, if we have internal root certificate we only want to inject that instead of the whole bundle.

Right now, the way that I achieve that is to manually drop them into /usr/local/openssl/certs and have the above plugin copy them into guest. What I'd like to do is potentially have each root/sub be a separate file in /certs so that I don't need to manually copy them over.

If there's a better way to do this I am open. The downside here is that the whole keychain would be exported into that directory versus only the certificates that I want to add to the default bundle.

@raggi
Copy link
Owner

raggi commented Dec 18, 2018

I'm in support of this being done, not sure if I'll get around to it soon. Should be an easy task for someone to try :)

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

No branches or pull requests

2 participants