Documentation ¶
Overview ¶
ref: https://medium.com/@shaneutt/create-sign-x509-certificates-in-golang-8ac4ae49f903 ref: https://www.crunchydata.com/blog/ssl-certificate-authentication-postgresql-docker-containers ref: https://fenixara.com/golang-connecting-to-posgres-using-ssl/
Index ¶
- type CA
- func (c *CA) GenerateServerCertificate(template *x509.Certificate, rsaKeyLength int) (certPem string, keyPem string, err error)
- func (c *CA) PEM() (certPem string, agentKeyPem string, err error)
- func (c *CA) PrivateKey() *rsa.PrivateKey
- func (c *CA) SplitPrivateKey() *keysplitting.PrivateKeyShard
- func (c *CA) X509() *x509.Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func Generate ¶
func Generate(template *x509.Certificate, rsaKeyLength int) (*CA, *keysplitting.PrivateKeyShard, error)
func (*CA) GenerateServerCertificate ¶
func (*CA) PrivateKey ¶
func (c *CA) PrivateKey() *rsa.PrivateKey
func (*CA) SplitPrivateKey ¶ added in v0.1.12
func (c *CA) SplitPrivateKey() *keysplitting.PrivateKeyShard
func (*CA) X509 ¶
func (c *CA) X509() *x509.Certificate
Click to show internal directories.
Click to hide internal directories.