Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEd25519ServingCert ¶
AssertEd25519ServingCert asserts that the TLS server at addr presents a leaf certificate whose public key is an Ed25519 key.
func AssertRSAServingCert ¶
AssertRSAServingCert asserts that the TLS server at addr presents a leaf certificate whose public key is an RSA key.
func CaptureServingCert ¶
CaptureServingCert dials addr over TLS and returns the leaf certificate presented by the server. The handshake itself may fail when the server enforces mTLS and the empty client certificate is rejected; the leaf is captured before that via VerifyPeerCertificate, which runs on the client as soon as the server's certificate is received.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.