- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ParsePemEncodedCSR (0.32 sec)
-
security/pkg/pki/util/crypto.go
} if len(certs) == 0 { return nil, nil, fmt.Errorf("no PEM encoded X.509 certificates parsed") } return certs, rootCertBytes, nil } // ParsePemEncodedCSR constructs a `x509.CertificateRequest` object using the // given PEM-encoded certificate signing request. func ParsePemEncodedCSR(csrBytes []byte) (*x509.CertificateRequest, error) { block, _ := pem.Decode(csrBytes) if block == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 5.3K bytes - Viewed (0) -
security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go
func (c *CAClient) CSRSign(csrPEM []byte, certValidTTLInSec int64) ([]string, error) { atomic.AddUint64(&c.SignInvokeCount, 1) signingCert, signingKey, certChain, rootCert := c.bundle.GetAll() csr, err := util.ParsePemEncodedCSR(csrPEM) if err != nil { return nil, fmt.Errorf("csr sign error: %v", err) } subjectIDs := []string{"test"}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 3K bytes - Viewed (0) -
security/pkg/pki/ra/common.go
) // ValidateCSR : Validate all SAN extensions in csrPEM match authenticated identities func ValidateCSR(csrPEM []byte, subjectIDs []string) bool { csr, err := util.ParsePemEncodedCSR(csrPEM) if err != nil { return false } if err := csr.CheckSignature(); err != nil { return false } csrIDs, err := util.ExtractIDs(csr.Extensions) if err != nil { return false }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 19:57:30 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/test/csrctrl/controllers/csr_controller.go
log.Info("CSR has already been signed. Ignoring.") case !isCertificateRequestApproved(csr): log.Info("CSR is not approved, Ignoring.") default: log.Info("Signing") x509cr, err := util.ParsePemEncodedCSR(csr.Spec.Request) if err != nil { log.Infof("unable to parse csr: %v", err) return nil } requestedLifeTime := signer.CertTTL
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 3.9K bytes - Viewed (0) -
security/pkg/nodeagent/test/mock/caserver.go
} caServerLog.Info("send back CSR success response") return response, nil } func (s *CAServer) sign(csrPEM []byte, subjectIDs []string, _ time.Duration, forCA bool) ([]byte, error) { csr, err := util.ParsePemEncodedCSR(csrPEM) if err != nil { caServerLog.Errorf("failed to parse CSR: %+v", err) return nil, caerror.NewError(caerror.CSRError, err) } signingCert, signingKey, _, _ := s.KeyCertBundle.GetAll()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 5.9K bytes - Viewed (0)