Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for privPem (0.08 sec)

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

    	privateKeyPath := pathForKey(pkiPath, name)
    
    	// Parse the private key from a file
    	privKey, err := keyutil.PrivateKeyFromFile(privateKeyPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "couldn't load the private key file %s", privateKeyPath)
    	}
    
    	// Allow RSA and ECDSA formats only
    	var key crypto.Signer
    	switch k := privKey.(type) {
    	case *rsa.PrivateKey:
    		key = k
    	case *ecdsa.PrivateKey:
    		key = k
    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