Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseCSR (0.07 sec)

  1. pkg/apis/certificates/validation/validation.go

    // 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 {
    		return err
    	}
    	// check that the signature is valid
    	return csr.CheckSignature()
    }
    
    func validateCertificate(pemData []byte) error {
    	if len(pemData) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top