cert: allow cert expiry to be set in config

This commit is contained in:
Jonathan Underwood authored and GitHub committed 2021-04-05 20:23:33 -07:00
1 parent 1ccf6ed7d4
commit 786568fa46
6 files changed
+32 -21

No files matched your search

+4 -3
View File
@@ -115,9 +115,10 @@ func TestTLSAutoRegeneration(t *testing.T) {
// Now let's run getTLSConfig. If it works properly, it should delete
// the cert and create a new one.
cfg := &Config{
TLSCertPath: certPath,
TLSKeyPath: keyPath,
RPCListeners: rpcListeners,
TLSCertPath: certPath,
TLSKeyPath: keyPath,
TLSCertDuration: 42 * time.Hour,
RPCListeners: rpcListeners,
}
_, _, _, cleanUp, err := getTLSConfig(cfg)
if err != nil {