Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
Certificate represents a loaded X509 certificate.
func FromBytes ¶
func FromBytes(data []byte) (*Certificate, error)
FromBytes loads an X509 certificate from PEM data.
func (*Certificate) Bytes ¶
func (c *Certificate) Bytes() []byte
Bytes returns the bytes of the X509 certificate.
func (*Certificate) Certificate ¶
func (c *Certificate) Certificate() *x509.Certificate
Certificate returns the X509 certificate.
func (*Certificate) Hash ¶
func (c *Certificate) Hash() []byte
Hash returns a SHA256 hash over the bytes of the X509 certificate.
Click to show internal directories.
Click to hide internal directories.