Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PublicKeysFromFile (0.18 sec)

  1. pkg/kubeapiserver/authenticator/config.go

    	}()
    
    	return nil
    }
    
    // IsValidServiceAccountKeyFile returns true if a valid public RSA key can be read from the given file
    func IsValidServiceAccountKeyFile(file string) bool {
    	_, err := keyutil.PublicKeysFromFile(file)
    	return err == nil
    }
    
    // newAuthenticatorFromTokenFile returns an authenticator.Token or an error
    func newAuthenticatorFromTokenFile(tokenAuthFile string) (authenticator.Token, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. pkg/controlplane/apiserver/config.go

    	}
    
    	// Load and set the public keys.
    	var pubKeys []interface{}
    	for _, f := range opts.Authentication.ServiceAccounts.KeyFiles {
    		keys, err := keyutil.PublicKeysFromFile(f)
    		if err != nil {
    			return nil, nil, fmt.Errorf("failed to parse key file %q: %w", f, err)
    		}
    		pubKeys = append(pubKeys, keys...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		return nil, nil, errors.Wrapf(err, "couldn't load the private key file %s", privateKeyPath)
    	}
    
    	publicKeyPath := pathForPublicKey(pkiPath, name)
    
    	// Parse the public key from a file
    	pubKeys, err := keyutil.PublicKeysFromFile(publicKeyPath)
    	if err != nil {
    		return nil, nil, errors.Wrapf(err, "couldn't load the public key file %s", publicKeyPath)
    	}
    
    	// Allow RSA and ECDSA formats only
    	switch k := privKey.(type) {
    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