keysigner

package
v0.0.0-...-b0d25e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log *logrus.Entry = logging.GetLogger("keysigner").WithField("pkg", "keysigner")

Functions

func SignCertWithAlgorithm

func SignCertWithAlgorithm(cert *ssh.Certificate, signer ssh.Signer, algorithm string) error

SignCertWithAlgorithm allows signing a certificate with any algorithm. It doesn't default to sha512 with rsa keys as the stdlib does

Types

type KeySignerService

type KeySignerService struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL