- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for NotBefore (0.23 sec)
-
cmd/kubeadm/app/phases/certs/certlist_test.go
ClusterConfiguration: kubeadmapi.ClusterConfiguration{ EncryptionAlgorithm: kubeadmapi.EncryptionAlgorithmECDSAP256, }, }, expectedConfig: &pkiutil.CertConfig{ Config: certutil.Config{ NotBefore: now.Add(-backdate), }, EncryptionAlgorithm: kubeadmapi.EncryptionAlgorithmECDSAP256, }, }, { name: "cert validity is set", cert: &KubeadmCert{ CAName: "some-ca",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0) -
security/pkg/util/certutil.go
// Note: multiply time.Duration(int64) by an int (gracePeriodPercentage) will cause overflow (e.g., // when duration is time.Hour * 90000). So float64 is used instead. gracePeriod := time.Duration(float64(cert.NotAfter.Sub(cert.NotBefore)) * (float64(cu.gracePeriodPercentage) / 100)) // waitTime is the duration between now and the grace period starts. // It is the time until cert expiration minus the length of grace period. waitTime := timeToExpire - gracePeriod
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 2.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
val type: String, val value: Any?, ) internal data class Validity( val notBefore: Long, val notAfter: Long, ) { // Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int { var result = 0 result = 31 * result + notBefore.toInt() result = 31 * result + notAfter.toInt() return result } }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0) -
security/pkg/util/certutil_test.go
// See the License for the specific language governing permissions and // limitations under the License. package util import ( "os" "testing" "time" ) const ( // This cert has: // NotBefore = 2017-08-23 19:00:40 +0000 UTC // NotAfter = 2017-08-24 19:00:40 +0000 UTC testCertFile = "testdata/cert-util.pem" ) func TestGetWaitTime(t *testing.T) { testCert, err := os.ReadFile(testCertFile)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/util.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 21 07:29:30 UTC 2022 - 2.1K bytes - Viewed (0) -
src/crypto/x509/boring_test.go
if i := strings.Index(org, "_"); i >= 0 { org = org[:i] parentOrg = name[i+1:] } tmpl := &Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ Organization: []string{org}, }, NotBefore: time.Unix(0, 0), NotAfter: time.Unix(0, 0), KeyUsage: KeyUsageKeyEncipherment | KeyUsageDigitalSignature, ExtKeyUsage: []ExtKeyUsage{ExtKeyUsageServerAuth, ExtKeyUsageClientAuth},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 17 17:38:47 UTC 2022 - 3.7K bytes - Viewed (0) -
pkg/test/csrctrl/authority/policies.go
usage, extUsages, err := keyUsagesFromStrings(p.Usages) if err != nil { return err } tmpl.KeyUsage = usage tmpl.ExtKeyUsage = extUsages tmpl.NotAfter = tmpl.NotBefore.Add(p.TTL) tmpl.ExtraExtensions = nil tmpl.Extensions = nil tmpl.BasicConstraintsValid = true tmpl.IsCA = false return nil } var keyUsageDict = map[capi.KeyUsage]x509.KeyUsage{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 4.5K bytes - Viewed (0) -
common-protos/k8s.io/api/certificates/v1beta1/generated.proto
// expirationSeconds is the requested duration of validity of the issued // certificate. The certificate signer may issue a certificate with a different // validity duration so a client must check the delta between the notBefore and // and notAfter fields in the issued certificate to determine the actual duration. // // The v1.22+ in-tree implementations of the well-known Kubernetes signers will
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 6.7K bytes - Viewed (0) -
security/tools/generate_cert/main.go
} case citadelMode: signerCert, signerPriv = signCertFromCitadel() default: log.Fatalf("Unsupported mode %v", *mode) } opts := util.CertOptions{ Host: *host, NotBefore: getNotBefore(), TTL: *validFor, SignerCert: signerCert, SignerPriv: signerPriv, Org: *org, IsCA: *isCA, IsSelfSigned: *mode == selfSignedMode,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 28 16:21:30 UTC 2023 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/api/certificates/v1beta1/types_swagger_doc_generated.go
"expirationSeconds": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 22 00:51:25 UTC 2023 - 5.9K bytes - Viewed (0)