Versions in this module Expand all Collapse all v0 v0.1.0 Jan 31, 2022 Changes in this version + const CertificatePemBlockType + const CsrPemBlockType + const DefaultLeaseTTL + const DefaultMaxLeaseTTL + const PrivateKeyPemBlockType + type Client struct + Address string + Client *api.Client + Token string + func NewClient(options ...Option) (*Client, error) + func (c *Client) CreatePKIRole(path string, opts CreatePKIRoleOptions) error + func (c *Client) EnablePKIEngine(path string) error + func (c *Client) GenerateIntermediateCA(path string, commonName string) (*x509.CertificateRequest, error) + func (c *Client) GenerateRootCA(path string, commonName string) (*x509.Certificate, error) + func (c *Client) SetSignedCertificate(path string, cert interface{}) error + func (c *Client) SignIntermediateCA(path string, csr *x509.CertificateRequest) (interface{}, error) + type CreatePKIRoleOptions struct + AllowBareDomains bool + AllowGlobDomains bool + AllowSubdomains bool + AllowedDomains []string + MaxTTL string + RoleName string + type Option func(client *Client) error + func WithAddress(vaultAddr string) Option + func WithConfig(config *api.Config) Option + func WithToken(vaultToken string) Option