open-consul/tlsutil
Daniel Nephin 86c9cb037f tlsutil: reduce interface provided to auto-config
Replace two methods with a single one that returns the cert. This moves more
of the logic into the single caller (auto-config).

tlsutil.Configurator is widely used. By keeping it smaller and focused only on storing and
returning TLS config, we make the code easier to follow.

These two methods were more related to auto-config than to tlsutil, so reducing the interface
moves the logic closer to the feature that requires it.
2021-06-22 14:11:28 -04:00
..
config.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
config_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
generate.go introduce certopts (#9606) 2021-03-22 10:16:41 +01:00
generate_test.go tlsutil: fix a test for go1.16 2021-04-13 13:31:20 -04:00