Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCertificatePEM ¶
func ParseCertificatePEM(certificatePEM string) (*x509.Certificate, error)
Types ¶
type EphemerealCertificate ¶
func NewEphemerealCertificate ¶
func NewEphemerealCertificate(privateKey *ecdsa.PrivateKey) (*EphemerealCertificate, error)
func (*EphemerealCertificate) GetTLSCertificate ¶
func (c *EphemerealCertificate) GetTLSCertificate() (tls.Certificate, error)
type PeerCertificateVerifier ¶
type PeerCertificateVerifier func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
func NewVerifyPinnedCertificate ¶ added in v1.0.1
func NewVerifyPinnedCertificate(pinnedCert *x509.Certificate) PeerCertificateVerifier
NewVerifyPinnedCertificate verifies the peer certificates on the TLS handshake for one that stricly matches a previously shared pinned certificate. We use it to verify ephemereal certificates exchanged through a side channel.
Click to show internal directories.
Click to hide internal directories.