Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTlsCert ¶
func GetTlsCert(der []byte) (*tls.Certificate, error)
GetTlsCert parses a single certificate from the given ASN.1 DER data and X509 proxy
func LoadX509KeyPair ¶
func LoadX509KeyPair(serverCrt, serverKey string) (cert tls.Certificate, err error)
LoadX509KeyPair parses a public/private key pair from a pair of PEM encoded data. It is slightly modified version of tls.X509Proxy where Leaf assignment is made to make proxy certificate works.
func LoadX509Proxy ¶
func LoadX509Proxy(proxyFile string) (cert tls.Certificate, err error)
LoadX509Proxy reads and parses a chained proxy file which contains PEM encoded data. It returns X509KeyPair. It is slightly modified version of tls.LoadX509Proxy function with addition of custom parse function (getData) for provided proxy file
func ParseCertificate ¶
func ParseCertificate(der []byte) (*x509.Certificate, error)
ParseCertificate parses a single certificate from the given ASN.1 DER data and X509 proxy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.