Documentation ¶
Index ¶
- Variables
- func SignCertWithAlgorithm(cert *ssh.Certificate, signer ssh.Signer, algorithm string) error
- type KeySignerService
- func (ks *KeySignerService) AddSigningKey(encodedKey []byte, passphrase []byte, comment string) error
- func (ks *KeySignerService) AddSmartcard(id, pin string) error
- func (ks *KeySignerService) AgentPing() bool
- func (ks *KeySignerService) Close()
- func (ks *KeySignerService) GetPublicKey() (ssh.PublicKey, error)
- func (ks *KeySignerService) KillAgent() bool
- func (ks *KeySignerService) Ready() bool
- func (ks *KeySignerService) RemoveAllKeys() error
- func (ks *KeySignerService) RemoveSmartcard(id string) error
- func (ks *KeySignerService) SignCertificate(cert *ssh.Certificate, algorithm string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logrus.Entry = logging.GetLogger("keysigner").WithField("pkg", "keysigner")
Functions ¶
func SignCertWithAlgorithm ¶
SignCertWithAlgorithm allows signing a certificate with any algorithm. It doesn't default to sha512 with rsa keys as the stdlib does
Types ¶
type KeySignerService ¶
func New ¶
func New(socketPath, preferredKeyHash string) *KeySignerService
func (*KeySignerService) AddSigningKey ¶
func (ks *KeySignerService) AddSigningKey(encodedKey []byte, passphrase []byte, comment string) error
func (*KeySignerService) AddSmartcard ¶
func (ks *KeySignerService) AddSmartcard(id, pin string) error
func (*KeySignerService) AgentPing ¶
func (ks *KeySignerService) AgentPing() bool
func (*KeySignerService) Close ¶
func (ks *KeySignerService) Close()
func (*KeySignerService) GetPublicKey ¶
func (ks *KeySignerService) GetPublicKey() (ssh.PublicKey, error)
func (*KeySignerService) KillAgent ¶
func (ks *KeySignerService) KillAgent() bool
Kill agent if it was started by us
func (*KeySignerService) Ready ¶
func (ks *KeySignerService) Ready() bool
func (*KeySignerService) RemoveAllKeys ¶
func (ks *KeySignerService) RemoveAllKeys() error
func (*KeySignerService) RemoveSmartcard ¶
func (ks *KeySignerService) RemoveSmartcard(id string) error
func (*KeySignerService) SignCertificate ¶
func (ks *KeySignerService) SignCertificate(cert *ssh.Certificate, algorithm string) error
Click to show internal directories.
Click to hide internal directories.