Documentation ¶
Index ¶
- func CertInfo(cert string) (principals []string, before uint64, err error)
- func CertStillValid(path string) bool
- func GetUserPubKey(key string) (string, error)
- func Sign(addr, user, password, pubKey string) (certificate string, err error)
- func UserPubKeyExists(key string) error
- func WriteUserSignedKey(signedKey string, key string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertStillValid ¶
CertStillValid checks if the certificate is not expired.
func GetUserPubKey ¶
GetUserPubKey returns user's SSH public key as string.
func UserPubKeyExists ¶
UserPubKeyExists checks if public key file exists.
func WriteUserSignedKey ¶
WriteUserSignedKey writes user certificate on disk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.