func (ca *CertAuthority) Checkers() ([]ssh.PublicKey, error) {
	out := make([]ssh.PublicKey, 0, len(ca.CheckingKeys))
	for _, keyBytes := range ca.CheckingKeys {
		key, _, _, _, err := ssh.ParseAuthorizedKey(keyBytes)
		if err != nil {
			return nil, trace.Errorf("invalid authority public key (len=%d): %v", len(keyBytes), err)
		}
		out = append(out, key)
	}
	return out, nil
}
// Checkers returns public keys that can be used to check cert authorities
Checkers returns public keys that can be used to check cert authorities
// Checkers returns public keys that can be used to check cert authorities
func (ca *CertAuthority) Checkers() ([]ssh.PublicKey, error) {
	out := make([]ssh.PublicKey, 0, len(ca.CheckingKeys))
	for _, keyBytes := range ca.CheckingKeys {
		key, _, _, _, err := ssh.ParseAuthorizedKey(keyBytes)
		if err != nil {
			return nil, trace.Errorf("invalid authority public key (len=%d): %v", len(keyBytes), err)
		}
		out = append(out, key)
	}
	return out, nil
}
func ( ca * CertAuthority ) Checkers ( ) ( [ ] ssh . PublicKey , error ) { out := make ( [ ] ssh . PublicKey , 0 , len ( ca . CheckingKeys ) ) for _ , keyBytes := range ca . CheckingKeys { key , _ , _ , _ , err := ssh . ParseAuthorizedKey ( keyBytes ) if err != nil { return nil , trace . Errorf ( " " , len ( keyBytes ) , err ) } out = append ( out , key ) } return out , nil }
Checkers returns public keys that can be used to check cert authorities
Checkers returns public keys that can be used to check cert authorities