- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetCertOptionsFromExistingCert (0.39 sec)
-
security/pkg/pki/util/generate_cert.go
return pemCert, options.SignerPrivPem, nil } // GetCertOptionsFromExistingCert parses cert and generates a CertOptions // that contains information about the cert. This is the reverse operation of // genCertTemplateFromOptions(), and only called by a self-signed Citadel. func GetCertOptionsFromExistingCert(certBytes []byte) (opts CertOptions, err error) { cert, certErr := ParsePemEncodedCertificate(certBytes)
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/selfsignedcarootcertrotator.go
_ = rotator.onRootCertUpdate() } } return } rootCertRotatorLog.Infof("Refresh root certificate, root cert is about to expire: %s", err.Error()) oldCertOptions, err := util.GetCertOptionsFromExistingCert(caSecret.Data[CACertFile]) if err != nil { rootCertRotatorLog.Warnf("Failed to generate cert options from existing root certificate (%v), "+ "new root certificate may not match old root certificate", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 10.4K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert_test.go
t.Errorf("failed to generate root certificate from options: %v", err) } // Rotate root certificate using the old private key. // 1. get cert option from old root certificate. oldCertOptions, err := GetCertOptionsFromExistingCert(oldRootCertPem) if err != nil { t.Errorf("failed to generate cert options from existing root certificate: %v", err) } // 2. create cert option for new root certificate. defaultOrg := "default org"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 29.4K bytes - Viewed (0)