testcerts icon indicating copy to clipboard operation
testcerts copied to clipboard

Add cmd CLI exposing the API for use with external tools and integration tests

Open jfkw opened this issue 11 months ago • 1 comments

It would be useful to expose the API functions to "dynamically generate self-signed certificates and certificate authorities for Go tests" via CLI in a module under cmd/. The use case would be to generate certs and CAs, etc. for use in integration tests with other tools, not limited to Go tests. It would not conflict with the testcert focus to not commit test certs to repositories, etc.

The rationale is that once a developer has become familiar with testcert operations and confident in the test results, they can build upon that experience in other scenarios there is a need for test certs and CAs that behave similarly with external tools. An example could be testing encrypted connectivity between two CLI utilities packaged separately, or implemented in two different programming languages. CI tools like openQA http://open.qa/ conduct such integration tests where dynamic certs and CAs could be used.

jfkw avatar Dec 30 '24 22:12 jfkw

Thanks for the suggestion, I’ve not focused on a CLI as there are already several CLI tools to make test certificates. But if the demand is there, it would be fairly easy to add.

madflojo avatar Jan 19 '25 14:01 madflojo