Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PrecomputedNum = 25
PrecomputedNum is the number of keys to precompute and keep cached.
Functions ¶
func BuildPrincipals ¶
func BuildPrincipals(hostID string, nodeName string, clusterName string, roles teleport.Roles) []string
BuildPrincipals takes a hostID, nodeName, clusterName, and role and builds a list of principals to insert into a certificate. This function is backward compatible with older clients which means:
- If RoleAdmin is in the list of roles, only a single principal is returned: hostID
- If nodename is empty, it is not included in the list of principals.
func GenerateKeyPair ¶
GenerateKeyPair returns fresh priv/pub keypair, takes about 300ms to execute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.