cert: allow cert expiry to be set in config
This commit is contained in:
1 parent
1ccf6ed7d4
commit
786568fa46
6 files changed
+32
-21
No files matched your search
+4
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user