Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2021 Changes in this version + var ErrCert = errors.New("problem with cert") + var ErrConfig = errors.New("cannot read config") + var ErrIssue = errors.New("cannot issue new certificate") + var ErrLogin = errors.New("cannot login") + func LoginApprole(config *Config, client *api.Client) error + func Run(config *Config) (int, error) + type Cert struct + CN string + CertFile string + ChainFile string + Hooks []string + PrivateKey string + Role string + SANS []string + func (cert *Cert) CheckAndRenew(config *Config, client *api.Client) (bool, error) + func (cert *Cert) Issue(config *Config, client *api.Client) error + func (cert *Cert) NeedsRenewal(config *Config) (bool, error) + func (cert *Cert) RunHooks() (err error) + func (cert *Cert) WriteFiles() (err error) + type CertData struct + Certificate string + Chain []string + PrivateKey string + type Config struct + Certs []Cert + Insecure bool + PkiPath string + RoleID string + SSH []SSHCert + SSHPath string + SecretID string + VaultAddr string + func ReadConfig(configPath string) (*Config, error) + type SSHCert struct + CertPath string + Hooks []string + Hosts []string + PrivateKeyPath string + PublicKeyPath string + Role string + func (cert *SSHCert) CheckAndRenew(config *Config, client *api.Client) (bool, error) + func (cert *SSHCert) Issue(config *Config, client *api.Client) error + func (cert *SSHCert) NeedsRenewal(config *Config) (bool, error) + func (cert *SSHCert) RunHooks() (err error) + func (cert *SSHCert) WriteFiles() (err error) + type SSHData struct + Cert string + PrivateKey string + PublicKey string