Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CertificateRequestFromFile (0.27 sec)

  1. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	}
    
    	return x509.ParseCertificateRequest(block.Bytes)
    }
    
    // CertificateRequestFromFile returns the CertificateRequest from a given PEM-encoded file.
    // Returns an error if the file could not be read or if the CSR could not be parsed.
    func CertificateRequestFromFile(file string) (*x509.CertificateRequest, error) {
    	pemBlock, err := os.ReadFile(file)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top