mirror of
https://github.com/minio/minio.git
synced 2025-11-25 12:06:10 -05:00
lock: Make some cleanup and moving the code around. (#2718)
This patch just avoids lot of ifs and inverts some logic.
This commit is contained in:
@@ -293,8 +293,8 @@ func generateTestCert(host string) error {
|
||||
Subject: pkix.Name{
|
||||
Organization: []string{"Minio Test Cert"},
|
||||
},
|
||||
NotBefore: time.Now(),
|
||||
NotAfter: time.Now().Add(time.Minute * 1),
|
||||
NotBefore: time.Now().UTC(),
|
||||
NotAfter: time.Now().UTC().Add(time.Minute * 1),
|
||||
|
||||
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
|
||||
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
|
||||
|
||||
Reference in New Issue
Block a user