Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateCSR (0.1 sec)

  1. security/pkg/pki/ra/fuzz_test.go

    			return
    		}
    		var i uint64
    		for i = 0; i < noOfEntries; i++ {
    			newStr, err := ff.GetString()
    			if err != nil {
    				break
    			}
    			subjectIDs = append(subjectIDs, newStr)
    		}
    
    		// call ValidateCSR()
    		ValidateCSR(csrPEM, subjectIDs)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
Back to top