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 LoadCert helper, reuse for export-tests #25

Conversation

woodruffw
Copy link
Contributor

This adds a new certutil.LoadCert helper function, which I created by carving the logic out of runServer.

It also adds the -rootCa flag to bettertls export-tests, mirroring the extant flag on bettertls server. I manually confirmed that using the flag both creates and restores the CA and CA key, as expected.

Closes #22.

@woodruffw
Copy link
Contributor Author

Also, apologies in advance if I've violated any Go idioms -- my Go is relatively weak 🙂

@JackOfMostTrades
Copy link
Contributor

This all looks right to me! Mostly just some copy/paste and moving stuff around, so not too much opportunity to run afoul of Go idioms (at least the ones I know about 😅 ).

@JackOfMostTrades JackOfMostTrades merged commit c171289 into Netflix:master Dec 2, 2023
1 check passed
@woodruffw woodruffw deleted the ww/export-tests-configurable-rootca branch December 2, 2023 18:24
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.

Passing a Root CA into bettertls export-tests?
2 participants