opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Generate client certificates dynamically for TestEnv

Open mbfm opened this issue 7 months ago • 0 comments

The client certificates stored in resources/development/tls/ should be generated automatically for use during development.

As such, they should be included in .gitignore and therefore not be checked into Git anymore.

Advice for implementation from #312:

various places in the code assume the certificate files to exist. We imagine, the best approach would be to dynamically generate the certificate files on the respective developer PCs and place the paths into the .gitignore file, so they don't get checked into the repo.
Very much preferably so, developers should not need to perform an additional setup step after checking out the repo for the generation to happen, so it might make sense to trigger the generation in the build.rs file of e.g. opendut-util. (The build.rs file is executed before compilation, and hopefully opendut-util is a dependency of everything that needs the certificates.).

mbfm avatar May 28 '25 09:05 mbfm