Versions in this module Expand all Collapse all v0 v0.9.0 Jul 2, 2020 Changes in this version + type APICertSignRequest struct + CSR string + Hostname string + type Bundle struct + Bundled []byte + Certificate []byte + Fingerprint string + PrivateKey []byte + func (b *Bundle) Combine() []byte + type CertClient interface + GenerateCert func(string) (*Bundle, error) + GetCertByFingerprint func(string) (*CertModel, error) + GetServerCertByLinkedAPIID func(string) (*CertModel, error) + StoreCert func(*CertModel) (*CertModel, error) + type CertModel struct + Bundle *Bundle + BundleHistory []Bundle + ClientEgressIDs []string + Created time.Time + Expires time.Time + IsMeshCert bool + MID bson.ObjectId + ServiceID string + UID string + func NewCertModel(bundle *Bundle) *CertModel + type Client struct + CA *Config + func New(cfg *Config) (*Client, error) + func (c *Client) GenerateCert(CN string) (*Bundle, error) + func (c *Client) GetCertByFingerprint(fp string) (*CertModel, error) + func (c *Client) GetOrCreateMeshCertID() (string, error) + func (c *Client) GetServerCertByLinkedAPIID(serviceID string) (*CertModel, error) + func (c *Client) StoreCert(cert *CertModel) (*CertModel, error) + type Config struct + Addr string + CertPath string + DefaultKeyRequest *csr.KeyRequest + DefaultNames []csr.Name + Key string + MongoConnStr string + Secure bool + SkipCACheck bool + type Mock struct + func (m *Mock) GenerateCert(CN string) (*Bundle, error) + func (m *Mock) GetCertByFingerprint(fp string) (*CertModel, error) + func (m *Mock) GetServerCertByLinkedAPIID(serviceID string) (*CertModel, error) + func (m *Mock) StoreCert(cert *CertModel) (*CertModel, error)