- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for IsCA (0.04 sec)
-
security/pkg/pki/util/generate_cert_test.go
t.Errorf("certificate Issuer does not match (old: %s) vs (new: %s)", oldRootCert.Issuer.String(), newRootCert.Issuer.String()) } if oldRootCert.IsCA != newRootCert.IsCA { t.Errorf("certificate IsCA does not match (old: %t) vs (new: %t)", oldRootCert.IsCA, newRootCert.IsCA) } if oldRootCert.Version != newRootCert.Version { t.Errorf("certificate Version does not match (old: %d) vs (new: %d)",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 29.4K bytes - Viewed (0) -
security/pkg/pki/util/keycertbundle_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 15.8K bytes - Viewed (0) -
security/pkg/pki/ca/selfsignedcarootcertrotator_test.go
t.Errorf("certificate Issuer does not match (old: %s) vs (new: %s)", oldRootCert.Issuer.String(), newRootCert.Issuer.String()) } if oldRootCert.IsCA != newRootCert.IsCA { t.Errorf("certificate IsCA does not match (old: %t) vs (new: %t)", oldRootCert.IsCA, newRootCert.IsCA) } if oldRootCert.Version != newRootCert.Version { t.Errorf("certificate Version does not match (old: %d) vs (new: %d)",
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/pki/util/generate_cert.go
ExtKeyUsage: extKeyUsages, IsCA: isCA, BasicConstraintsValid: true, ExtraExtensions: exts, }, nil } // genCertTemplateFromoptions generates a certificate template with the given options. func genCertTemplateFromOptions(options CertOptions) (*x509.Certificate, error) { var keyUsage x509.KeyUsage if options.IsCA {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 02 14:34:38 UTC 2023 - 14.2K bytes - Viewed (0) -
security/pkg/pki/ca/ca_test.go
RSAKeySize: 2048, IsCA: false, }, maxTTL: time.Hour, requestedTTL: 30 * time.Minute, verifyFields: util.VerifyFields{ ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment, IsCA: false, Host: subjectID, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 08:51:27 UTC 2023 - 29.1K bytes - Viewed (0) -
security/pkg/pki/util/keycertbundle.go
} if len(ids) != 1 { return nil, fmt.Errorf("expect single id from the cert, found %v", ids) } opts := &CertOptions{ Host: ids[0], Org: b.cert.Issuer.Organization[0], IsCA: b.cert.IsCA, TTL: b.cert.NotAfter.Sub(b.cert.NotBefore), IsDualUse: ids[0] == b.cert.Subject.CommonName, } switch (*b.privKey).(type) { case *rsa.PrivateKey: size, err := GetRSAKeySize(*b.privKey)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 10.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers.go
NotBefore: notBefore, NotAfter: notAfter, KeyUsage: keyUsage, ExtKeyUsage: cfg.Usages, BasicConstraintsValid: true, IsCA: isCA, } certDERBytes, err := x509.CreateCertificate(cryptorand.Reader, &certTmpl, caCert, key.Public(), caKey) if err != nil { return nil, err } return x509.ParseCertificate(certDERBytes) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 25.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certs.go
} // Validate period CheckCertificatePeriodValidity(baseName, caCert) // Make sure the loaded CA cert actually is a CA if !caCert.IsCA { return nil, nil, errors.Errorf("%s certificate is not a certificate authority", baseName) } return caCert, caKey, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 05 10:17:14 UTC 2023 - 19.4K bytes - Viewed (0) -
security/pkg/pki/ca/ca.go
pkiCaLog.Infof("CASecret %s not found, will create one", caCertName) options := util.CertOptions{ TTL: caCertTTL, Org: org, IsCA: true, IsSelfSigned: true, RSAKeySize: caRSAKeySize, IsDualUse: dualUse, } pemCert, pemKey, ckErr := util.GenCertKeyFromOptions(options) if ckErr != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 17.2K bytes - Viewed (0) -
src/crypto/x509/parser.go
} func parseBasicConstraintsExtension(der cryptobyte.String) (bool, int, error) { var isCA bool if !der.ReadASN1(&der, cryptobyte_asn1.SEQUENCE) { return false, 0, errors.New("x509: invalid basic constraints") } if der.PeekASN1Tag(cryptobyte_asn1.BOOLEAN) { if !der.ReadASN1Boolean(&isCA) { return false, 0, errors.New("x509: invalid basic constraints") } } maxPathLen := -1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 38.5K bytes - Viewed (0)