Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + type Config struct + GCPKMS GCPKMSConfig + Logger logrus.FieldLogger + PKCS11 PKCS11Config + Software SoftwareConfig + func SetupSoftHSMTest(t *testing.T) Config + func (cfg *Config) CheckAndSetDefaults() error + type GCPKMSConfig struct + HostUUID string + KeyRing string + ProtectionLevel string + func (cfg *GCPKMSConfig) CheckAndSetDefaults() error + type Manager struct + func NewManager(ctx context.Context, cfg Config) (*Manager, error) + func (m *Manager) GetAdditionalTrustedSSHSigner(ctx context.Context, ca types.CertAuthority) (ssh.Signer, error) + func (m *Manager) GetAdditionalTrustedTLSCertAndSigner(ctx context.Context, ca types.CertAuthority) ([]byte, crypto.Signer, error) + func (m *Manager) GetJWTSigner(ctx context.Context, ca types.CertAuthority) (crypto.Signer, error) + func (m *Manager) GetSSHSigner(ctx context.Context, ca types.CertAuthority) (ssh.Signer, error) + func (m *Manager) GetTLSCertAndSigner(ctx context.Context, ca types.CertAuthority) ([]byte, crypto.Signer, error) + func (m *Manager) HasUsableActiveKeys(ctx context.Context, ca types.CertAuthority) (bool, error) + func (m *Manager) HasUsableAdditionalKeys(ctx context.Context, ca types.CertAuthority) (bool, error) + func (m *Manager) NewJWTKeyPair(ctx context.Context) (*types.JWTKeyPair, error) + func (m *Manager) NewSSHKeyPair(ctx context.Context) (*types.SSHKeyPair, error) + func (m *Manager) NewTLSKeyPair(ctx context.Context, clusterName string) (*types.TLSKeyPair, error) + type PKCS11Config struct + HostUUID string + Path string + Pin string + SlotNumber *int + TokenLabel string + func (cfg *PKCS11Config) CheckAndSetDefaults() error + type RSAKeyOption func(*RSAKeyOptions) + func WithDigestAlgorithm(alg crypto.Hash) RSAKeyOption + type RSAKeyOptions struct + DigestAlgorithm crypto.Hash + type RSAKeyPairSource func() (priv []byte, pub []byte, err error) + type SoftwareConfig struct + RSAKeyPairSource RSAKeyPairSource + func (cfg *SoftwareConfig) CheckAndSetDefaults() error