Documentation ¶
Index ¶
- Variables
- func GenerateAndSave(name, organization string, validity time.Duration) (tlsc *tls.Certificate, err error)
- func GetTLSCertificate(cert *x509.Certificate, priv *rsa.PrivateKey, hostname string, ...) (*tls.Certificate, error)
- func NewCertificatePair(name, organization string, validity time.Duration) (*x509.Certificate, *rsa.PrivateKey, error)
- func PemBlockForKey(priv interface{}) *pem.Block
Constants ¶
This section is empty.
Variables ¶
MaxSerialNumber - nothing very original, big number
Functions ¶
func GenerateAndSave ¶
func GenerateAndSave(name, organization string, validity time.Duration) (tlsc *tls.Certificate, err error)
GenerateAndSave - generates cert and key and saves them on your disk
func GetTLSCertificate ¶
func GetTLSCertificate(cert *x509.Certificate, priv *rsa.PrivateKey, hostname string, validity time.Duration) (*tls.Certificate, error)
GetTLSCertificate - takes x509 cert and private key, returns tls.Certificate that is ready for proxy use
func NewCertificatePair ¶
func NewCertificatePair(name, organization string, validity time.Duration) (*x509.Certificate, *rsa.PrivateKey, error)
NewCertificatePair - returns x509 cert + private key
func PemBlockForKey ¶
PemBlockForKey - based on key returns a block
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.