Documentation
¶
Overview ¶
The sshcert package provides convenience functions for dealing with SSH certificates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddedKey ¶ added in v0.21.0
func AddedKey(key any, cert *ssh.Certificate) agent.AddedKey
AddedKey returns the SSH key to be added to the Agent On non-Windows platforms this includes LifetimeSecs that aligns with the certificate expiry time
func ParseCert ¶
func ParseCert(certBytes []byte) (*ssh.Certificate, error)
ParseCert will parse the provided byte slice (in OpenSSH certificate format) and return a *ssh.Certificate.
Only the first certificate in certBytes is parsed and any remaining data is ignored.
Any parsing errors will result in a nil *ssh.Certificate returned along with the error.
Types ¶
This section is empty.