Documentation ¶
Overview ¶
Package sct verifies Signed Certificate Timestamp in TLS connections. See [RFC 6962](https://datatracker.ietf.org/doc/rfc6962/).
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnectionState ¶
func CheckConnectionState(state *tls.ConnectionState, cc CheckerConfig) error
CheckConnectionState examines SCTs (both embedded and in the TLS extension) and returns nil if at least one of them is valid.
Example ¶
// Verifying the SCTs after a HTTPS GET request. resp, err := http.Get("https://www.certificate-transparency.org") if err != nil { panic("get failed " + err.Error()) } err = sct.CheckConnectionState(resp.TLS, sct.CheckerConfig{}) if err != nil { panic("SCT check failed " + err.Error()) }
Output:
Types ¶
type CertificateTransparencyTransport ¶ added in v0.0.3
type CertificateTransparencyTransport struct {
Config TransportConfig
}
func NewTransport ¶ added in v0.0.3
func NewTransport(tc TransportConfig) *CertificateTransparencyTransport
type CheckerConfig ¶ added in v0.0.3
type LogListConfig ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.