Documentation ¶
Index ¶
- func HashNameAndPKI(h hash.Hash, name, pki []byte) ([]byte, []byte, error)
- func HumanDuration(d time.Duration) string
- func ParseCertificate(contents []byte) (*x509.Certificate, error)
- func ProxyFunc(proxies []string) (func(*http.Request) (*url.URL, error), error)
- func ReadCertificate(filename string) (*x509.Certificate, error)
- type BasicFailer
- type Failer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanDuration ¶
func ParseCertificate ¶
func ParseCertificate(contents []byte) (*x509.Certificate, error)
ParseCertificate parses a certificate from either it's PEM or DER form
func ReadCertificate ¶
func ReadCertificate(filename string) (*x509.Certificate, error)
Types ¶
type BasicFailer ¶
type BasicFailer struct{}
Click to show internal directories.
Click to hide internal directories.