Versions in this module Expand all Collapse all v0 v0.0.1 Sep 15, 2021 Changes in this version + func CreateCsr(commonName string, country string, state string, city string, ...) ([]byte, []byte, error) + func CreateCsrFromKey(commonName string, country string, state string, city string, ...) ([]byte, error) + func Get(url string, headers map[string]string, serverCert []byte) ([]byte, error) + func PKCS7ToPEM(data []byte) ([]byte, error) + func ParseRsaPrivateKeyFromPemStr(privPEM string) (*rsa.PrivateKey, error) + func Post(url string, data []byte, headers map[string]string, username string, ...) ([]byte, error) + func Send(method string, url string, data []byte, headers map[string]string, ...) ([]byte, error) + type Client struct + Password string + ServerCert []byte + URLPrefix string + Username string + func (c *Client) CaCerts() ([]byte, error) + func (c *Client) SimpleEnroll(csr []byte) ([]byte, error) + func (c *Client) SimpleEnroll9443(csr []byte, cert []byte, privKey []byte) ([]byte, error) + func (c *Client) SimpleReenroll(csr []byte, clientCert []byte, clientKey []byte) ([]byte, error)