- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewCertUtil (0.13 sec)
-
security/pkg/util/certutil.go
} // CertUtilImpl is the implementation of CertUtil, for production use. type CertUtilImpl struct { gracePeriodPercentage int } // NewCertUtil returns a new CertUtilImpl func NewCertUtil(gracePeriodPercentage int) CertUtilImpl { return CertUtilImpl{ gracePeriodPercentage: gracePeriodPercentage, } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 2.3K bytes - Viewed (0) -
security/pkg/pki/ca/selfsignedcarootcertrotator_test.go
// a copy of root cert from config map for verification. certItem0 := loadCert(rotator) // Change grace period percentage to 0, so that root cert is not going to expire soon. rotator.config.certInspector = certutil.NewCertUtil(0) rotator.checkAndRotateRootCert() // Verifies that when root cert remaining life is not in grace period time, // root cert is not rotated. certItem1 := loadCert(rotator)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 11 23:33:41 UTC 2023 - 14.1K bytes - Viewed (0) -
security/pkg/util/certutil_test.go
}, "Invalid cert pem": { cert: []byte(`INVALIDCERT`), now: time.Date(2017, time.August, 23, 21, 0, 0, 40, time.UTC), expectedErr: "invalid PEM encoded certificate", }, } cu := NewCertUtil(50) // Grace period percentage is set to 50 for id, c := range testCases { waitTime, err := cu.GetWaitTime(c.cert, c.now) if c.expectedErr != "" { if err == nil { t.Errorf("%s: no error is returned.", id)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 3.1K bytes - Viewed (0) -
pilot/pkg/bootstrap/certcontroller.go
} } func (s *Server) RotateDNSCertForK8sCA(stop <-chan struct{}, defaultCACertPath string, signerName string, approveCsr bool, requestedLifetime time.Duration, ) { certUtil := certutil.NewCertUtil(int(defaultCertGracePeriodRatio * 100)) for { waitTime, _ := certUtil.GetWaitTime(s.istiodCertBundleWatcher.GetKeyCertBundle().CertPem, time.Now()) if !sleep.Until(stop, waitTime) { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 11.3K bytes - Viewed (0) -
security/pkg/pki/ca/ca.go
CheckInterval: rootCertCheckInverval, caCertTTL: caCertTTL, retryInterval: cmd.ReadSigningCertRetryInterval, retryMax: cmd.ReadSigningCertRetryMax, certInspector: certutil.NewCertUtil(rootCertGracePeriodPercentile), caStorageNamespace: namespace, dualUse: dualUse, org: org, rootCertFile: rootCertFile, enableJitter: enableJitter,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 17.2K bytes - Viewed (0)