Documentation ¶
Overview ¶
Package ca will handle the creation of certificates for TSL encrypted communication Credits: Shane Utt https://shaneutt.com/blog/golang-ca-and-signed-cert-go/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLECertificateAndKey ¶
func ParseAndSum ¶
ParseAndSum will take the user provided cert and return the sha256 and sha1 sum
Types ¶
type LetsEncryptUser ¶
type LetsEncryptUser struct { Email string Registration *registration.Resource Key crypto.PrivateKey HTTPPort string TLSPort string Domains []string Config *lego.Config Client *lego.Client }
LetsEncryptUser is the struct of all information needed to rollout a lets encrypt certificate
func (*LetsEncryptUser) GetEmail ¶
func (u *LetsEncryptUser) GetEmail() string
GetEmail will return the Users Email
func (*LetsEncryptUser) GetPrivateKey ¶
func (u *LetsEncryptUser) GetPrivateKey() crypto.PrivateKey
GetPrivateKey will return the Private Key
func (*LetsEncryptUser) GetRegistration ¶
func (u *LetsEncryptUser) GetRegistration() *registration.Resource
Get Registration will return the Registration
func (*LetsEncryptUser) RequestCertificate ¶
func (u *LetsEncryptUser) RequestCertificate() ([]byte, []byte)
Click to show internal directories.
Click to hide internal directories.