Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MemString (0.12 sec)

  1. cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go

    +iyvsLAw/MYMSA==
    -----END CERTIFICATE-----
    `
    
    // testCert is a small helper to get a test x509.Certificate from the PEM constants
    func testCert(t *testing.T, pemString string) *x509.Certificate {
    	// Decode the example certificate from a PEM file into a PEM block
    	pemBlock, _ := pem.Decode([]byte(pemString))
    	if pemBlock == nil {
    		t.Fatal("failed to parse test certificate PEM")
    		return nil
    	}
    
    	// Parse the PEM block into an x509.Certificate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 13 11:38:39 UTC 2021
    - 5.9K bytes
    - Viewed (0)
Back to top