- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ValidateCSR (0.23 sec)
-
security/pkg/pki/ra/fuzz_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.1K bytes - Viewed (0) -
security/pkg/pki/ra/common.go
// DefaultExtCACertDir : Location of external CA certificate DefaultExtCACertDir string = "./etc/external-ca-cert" ) // 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 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 19:57:30 UTC 2023 - 4.4K bytes - Viewed (0) -
security/pkg/pki/ra/k8s_ra_test.go
} var testSubjectIDs []string // Test Case 1 testSubjectIDs = []string{testCsrHostName, "Random-Host-Name"} if !ValidateCSR(csrPEM, testSubjectIDs) { t.Errorf("Test 1: CSR Validation failed") } // Test Case 2 testSubjectIDs = []string{"Random-Host-Name"} if ValidateCSR(csrPEM, testSubjectIDs) { t.Errorf("Test 2: CSR Validation failed") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 00:44:54 UTC 2023 - 9.7K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
allowUnknownUsages bool // allow duplicate usages values allowDuplicateUsages bool } // validateCSR validates the signature and formatting of a base64-wrapped, // PEM-encoded PKCS#10 certificate signing request. If this is invalid, we must // not accept the CSR for further processing. func validateCSR(obj *certificates.CertificateSigningRequest) error { csr, err := certificates.ParseCSR(obj.Spec.Request) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0)