tlsprobe

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tlsprobe actively probes a TLS server and reports what it supports: protocol versions, every cipher suite, key-exchange groups (including post-quantum hybrids), and certificates.

It speaks the protocol itself (package wire) so it can offer things the standard library never would, and it works from IANA's registries (package registry) so nothing is limited to what a linked TLS library happens to implement. Findings here are OBSERVED facts about the server; judging them (weak, deprecated, quantum-vulnerable) is the evaluation layer's job.

Index

Constants

View Source
const (
	StageProtocols   = "protocols"
	StageSuites      = "suites"
	StageKeyExchange = "key-exchange"
	StageSignatures  = "signatures"
	StageFeatures    = "features"
	StageCerts       = "certificates"
	StageRevocation  = "revocation"
	StageHTTP        = "http"
)

Stage names: fixed, they are the endpoint page's sections.

View Source
const (
	OutcomeDone         = "done"
	OutcomeSkipped      = "skipped"
	OutcomeInconclusive = "inconclusive"

	ReasonOptionOff     = "option-off"
	ReasonNotApplicable = "not-applicable"
	ReasonNotReached    = "not-reached"
	ReasonBudget        = "budget"
	ReasonLegacy        = "legacy-report"
)

Stage outcomes and reason codes.

View Source
const (
	SigAccepted     = "accepted"
	SigRefused      = "refused"
	SigInconclusive = "inconclusive"
)

The results of one scheme, and of the control.

View Source
const (
	StartTLSNone     = ""
	StartTLSSMTP     = "smtp"
	StartTLSIMAP     = "imap"
	StartTLSPOP3     = "pop3"
	StartTLSFTP      = "ftp"
	StartTLSXMPP     = "xmpp"
	StartTLSLDAP     = "ldap"
	StartTLSPostgres = "postgres"
)

The protocols a scan can negotiate STARTTLS for.

View Source
const SchemaVersion = "tls-report/2"

SchemaVersion identifies the JSON shape of Report. It changes only with a documented change. tls-report/2 adds the stage records, the raw served certificates, the stapled OCSP response and TLS SCTs, the no-SNI chain and the parsed HSTS header; every /1 field keeps its meaning.

View Source
const SchemaVersion1 = "tls-report/1"

SchemaVersion1 is the previous shape, still read from stored scans.

View Source
const SignatureControlScheme uint16 = 0xFE01

SignatureControlScheme is the control: RFC 8446 section 11 reserves 0xFE00 to 0xFFFF for private use.

Variables

StageNames lists the stages in page order.

StartTLSProtocols lists the protocols in the order the interface offers them.

Functions

func ResolveStartTLS

func ResolveStartTLS(choice string, port int) (string, error)

ResolveStartTLS turns a choice ("auto", "none", "" or a protocol) and a port into the protocol to use: "auto" picks by well-known port, "none" and "" mean direct TLS.

func SplitScheme

func SplitScheme(s string) (rest, proto string, port int, ok bool, err error)

SplitScheme reads an optional "scheme://" prefix: it returns the rest, the protocol the scheme names, its default port, and whether there was a scheme. A path after the host is dropped.

func StartTLSName

func StartTLSName(proto string) string

StartTLSName is a protocol's display name ("SMTP"); empty for direct TLS.

Types

type AlgInfo

type AlgInfo struct {
	Name string `json:"name"`
	OID  string `json:"oid"`
}

AlgInfo names an algorithm and carries its OID.

type BasicConstraints

type BasicConstraints struct {
	CA         bool `json:"ca"`
	MaxPathLen int  `json:"maxPathLen"` // -1 when absent
}

BasicConstraints is the basicConstraints extension.

type CertInfo

type CertInfo struct {
	Subject      string    `json:"subject"`
	Issuer       string    `json:"issuer"`
	SerialHex    string    `json:"serial"`
	DNSNames     []string  `json:"dnsNames,omitempty"`
	IPAddresses  []string  `json:"ipAddresses,omitempty"`
	NotBefore    time.Time `json:"notBefore"`
	NotAfter     time.Time `json:"notAfter"`
	IsCA         bool      `json:"isCa"`
	SelfSigned   bool      `json:"selfSigned"`
	SHA256       string    `json:"sha256"`
	PublicKey    KeyInfo   `json:"publicKey"`
	SignatureAlg AlgInfo   `json:"signatureAlgorithm"`

	OCSPServers    []string `json:"ocspServers,omitempty"`
	IssuerURLs     []string `json:"issuerUrls,omitempty"`
	CRLPoints      []string `json:"crlPoints,omitempty"`
	OCSPMustStaple bool     `json:"ocspMustStaple,omitempty"`
	EmbeddedSCTs   bool     `json:"embeddedScts,omitempty"`
	ParseError     string   `json:"parseError,omitempty"`

	// tls-report/2 additions.
	DER              string            `json:"der,omitempty"` // base64 of the certificate as served
	SPKISHA256       string            `json:"spkiSha256,omitempty"`
	KeyUsage         []string          `json:"keyUsage,omitempty"`
	ExtKeyUsage      []string          `json:"extKeyUsage,omitempty"`
	BasicConstraints *BasicConstraints `json:"basicConstraints,omitempty"`
	NameConstraints  *NameConstraints  `json:"nameConstraints,omitempty"`
	Policies         []string          `json:"policies,omitempty"`
	PolicyClass      string            `json:"policyClass,omitempty"` // DV | OV | IV | EV | unknown
	CNOnly           bool              `json:"cnOnly,omitempty"`
	Wildcards        []string          `json:"wildcards,omitempty"`
	LifetimeDays     int               `json:"lifetimeDays,omitempty"`
	RSAExponent      int               `json:"rsaExponent,omitempty"`
}

CertInfo describes one certificate.

func DescribeCertificate

func DescribeCertificate(c *x509.Certificate) CertInfo

DescribeCertificate is the CertInfo the scanner records for a certificate, raw DER included. Exported for evaluation fixtures and importers.

type CertResult

type CertResult struct {
	// Source says how it was obtained, e.g. "tls-default", "tls1.2-ecdsa", "tls1.2-rsa".
	Source string `json:"source"`
	// Chain is the presented chain, leaf first.
	Chain []CertInfo `json:"chain"`
	// Trusted: the chain builds to a root in the trust store.
	Trusted    bool   `json:"trusted"`
	TrustError string `json:"trustError,omitempty"`
	// NameMatches: the leaf is valid for the target host name.
	NameMatches bool   `json:"nameMatches"`
	NameError   string `json:"nameError,omitempty"`

	// NoSNI marks the chain returned to a handshake without server_name, when it
	// differs from the SNI chain.
	NoSNI bool `json:"noSni,omitempty"`
	// OCSPStaple is the raw stapled OCSP response (base64), at most 64 KiB.
	OCSPStaple string `json:"ocspStaple,omitempty"`
	// TLSSCTs are the raw SCTs from the TLS extension (base64), at most 32.
	TLSSCTs []string `json:"tlsScts,omitempty"`
}

CertResult is one certificate the server presented.

type DHResult

type DHResult struct {
	PrimeBits     int    `json:"primeBits"`
	GeneratorBits int    `json:"generatorBits"`
	PrimeSHA256   string `json:"primeSha256"` // fingerprint of the prime, for matching known groups
	Suite         string `json:"suite"`       // the suite the sample came from
}

DHResult describes the server's DHE parameters, as sent in ServerKeyExchange.

type Evidence

type Evidence string

Evidence says how a result was obtained.

const (
	EvidenceServerHello  Evidence = "server-hello" // the server answered with a ServerHello / HelloRetryRequest
	EvidenceAlert        Evidence = "alert"        // the server refused with a TLS alert
	EvidenceClosed       Evidence = "closed"       // the server closed the connection without answering
	EvidenceInconclusive Evidence = "inconclusive" // timeout or network error: proves nothing
)

The evidence kinds. Observed means a server reply demonstrated it.

type Features

type Features struct {
	// SecureRenegotiation: the server echoed renegotiation_info (RFC 5746).
	SecureRenegotiation *bool `json:"secureRenegotiation,omitempty"`
	// ExtendedMasterSecret: the server echoed extended_master_secret (RFC 7627).
	ExtendedMasterSecret *bool `json:"extendedMasterSecret,omitempty"`
	// SessionTickets: the server offered session tickets.
	SessionTickets *bool `json:"sessionTickets,omitempty"`
	// EncryptThenMAC: the server echoed encrypt_then_mac (RFC 7366).
	EncryptThenMAC *bool `json:"encryptThenMac,omitempty"`
	// OCSPStapling: the server supports status_request.
	OCSPStapling *bool `json:"ocspStapling,omitempty"`
	// Compression: the server accepted TLS-level compression (CRIME).
	Compression *bool `json:"compression,omitempty"`
	// FallbackSCSV: the server enforces TLS_FALLBACK_SCSV (RFC 7507); nil when it
	// could not be tested (fewer than two supported versions).
	FallbackSCSV *bool `json:"fallbackScsv,omitempty"`
	// ClientCertRequested: the server sent a CertificateRequest (RFC 8446 section
	// 4.3.2) during the handshake, i.e. it wants (or requires) a client
	// certificate (mTLS). true is set the moment the server asks, even if the
	// handshake then fails for lack of one. false is set only when a full
	// handshake succeeded without ever asking. Anything else (the handshake
	// failed before or without a request) leaves this nil: unknown, not "no."
	ClientCertRequested *bool `json:"clientCertRequested,omitempty"`
}

Features are server behaviours read from hello messages.

type GroupResult

type GroupResult struct {
	// Version is "TLSv1.3" for groups learned via HelloRetryRequest, or
	// "TLSv1.2" for the ECDHE curves of TLS 1.2 and earlier.
	Version string `json:"version"`
	ID      uint16 `json:"id"`
	Name    string `json:"name"`
	// Rank: 1 = most preferred, 0 = no server ranking (client-order server).
	Rank int `json:"rank"`

	IANARecommended string `json:"ianaRecommended"`
	PQ              bool   `json:"pq,omitempty"`
	Hybrid          bool   `json:"hybrid,omitempty"`
	Obsolete        bool   `json:"obsolete,omitempty"` // IANA marks this draft-era name OBSOLETE
}

GroupResult is one key-exchange group the server accepts.

type HSTSResult

type HSTSResult struct {
	// Values are the raw header values, cleaned and bounded (at most 4, each at
	// most 512 bytes). Empty: the response had no such header.
	Values            []string `json:"values,omitempty"`
	MaxAge            *int64   `json:"maxAge,omitempty"`
	IncludeSubDomains bool     `json:"includeSubDomains,omitempty"`
	Preload           bool     `json:"preload,omitempty"`
	// Problems are reasons the header is invalid; a user agent ignores an
	// invalid header entirely.
	Problems []string `json:"problems,omitempty"`
}

HSTSResult is the parsed Strict-Transport-Security header (RFC 6797 §6.1).

func ParseHSTS

func ParseHSTS(values []string) *HSTSResult

ParseHSTS parses the Strict-Transport-Security header values of one response by RFC 6797 §6.1:

  • directives are separated by ";", names are case-insensitive, values are a token or a quoted-string;
  • max-age is required, once, and is 1*DIGIT;
  • a directive appearing twice makes the whole header invalid (§6.1 rule 2);
  • includeSubDomains takes no value; unknown directives are ignored.

More than one header is a problem in itself: a user agent processes only the first (§8.1). The first value is the one parsed.

func (*HSTSResult) Valid

func (h *HSTSResult) Valid() bool

Valid reports whether a header was present and a user agent would honour it.

type KeyInfo

type KeyInfo struct {
	Algorithm string `json:"algorithm"` // RSA, ECDSA, Ed25519, ... or "unknown"
	OID       string `json:"oid"`       // the SubjectPublicKeyInfo algorithm OID
	Bits      int    `json:"bits,omitempty"`
	Curve     string `json:"curve,omitempty"`
}

KeyInfo describes a public key.

type NameConstraints

type NameConstraints struct {
	Critical  bool     `json:"critical"`
	Permitted []string `json:"permitted,omitempty"`
	Excluded  []string `json:"excluded,omitempty"`
}

NameConstraints is the nameConstraints extension.

type Negotiated

type Negotiated struct {
	Version    string `json:"version"`
	Suite      string `json:"suite"`
	SuiteID    uint16 `json:"suiteId"`
	Group      string `json:"group,omitempty"`
	GroupID    uint16 `json:"groupId,omitempty"`
	PQ         bool   `json:"pq"`
	ALPN       string `json:"alpn,omitempty"`
	OCSPStaple bool   `json:"ocspStaple"`
	Error      string `json:"error,omitempty"`
}

Negotiated is the outcome of a full handshake by a current client.

type Options

type Options struct {
	// Timeout bounds each connection (dial plus exchange). Default 8s.
	Timeout time.Duration
	// Concurrency is how many connections may be in flight to the target at once.
	// Default 4. A scan makes a few hundred short connections; this keeps it gentle.
	Concurrency int
	// MaxConnections is a hard cap on connections for the whole scan. Default 2000.
	// When it is reached the scan stops probing and the report is marked incomplete.
	MaxConnections int
	// MinInterval is the minimum spacing between the starts of two connections.
	MinInterval time.Duration
	// SkipCertificates omits the crypto/tls-based certificate and negotiation steps.
	SkipCertificates bool
	// HTTPChecks, when set, sends one plain HTTP GET / after the handshake and
	// reads the Strict-Transport-Security header. Off by default: this is the
	// only check in the package that sends anything beyond a TLS handshake.
	HTTPChecks bool
	// OSTrust, when set, also checks each chain against the operating system's
	// trust store at scan time (REQ-TTRS-3). Off by default: the bundled root
	// stores are applied in evaluation, and on some systems the OS verifier
	// fetches missing intermediates from the network, which would contact a
	// host other than the target.
	OSTrust bool

	// Dial opens a connection. Default: net.Dialer. The server's SSRF guard and tests
	// replace it. STARTTLS runs on top of whatever it returns (Target.StartTLS).
	Dial func(ctx context.Context, network, addr string) (net.Conn, error)
	// LookupIP resolves a host name. Default: net.DefaultResolver.
	LookupIP func(ctx context.Context, host string) ([]net.IP, error)
	// Rand supplies the ClientHello randoms. Default crypto/rand.
	Rand io.Reader
	// Now returns the current time. Default time.Now.
	Now func() time.Time
	// Progress, if set, is told what the scan is doing.
	Progress func(msg string)
	// Tick, if set, is called with the running connection count each time a
	// connection is started. It may be called concurrently.
	Tick func(connections int)
}

Options bound and shape a scan. The zero value is usable and conservative.

type PanicError

type PanicError struct {
	Value any
	Stack []byte
}

PanicError is returned by Scan when the prober itself failed: a bug, most likely triggered by an answer nobody anticipated. Stack is for the log, never for the person who asked for the scan.

func (*PanicError) Error

func (e *PanicError) Error() string

type PreferenceResult

type PreferenceResult struct {
	Version string `json:"version"`
	// Subject is "suites" or "groups".
	Subject string `json:"subject"`
	// Order is "server" (the server picks by its own list), "client" (it picks the
	// first acceptable in the client's list), "mixed" (it does one for some pairs and
	// the other for others) or "unknown" (fewer than two items, or no answer).
	Order string `json:"order"`
}

PreferenceResult records who decides between the suites (or groups) offered.

type ProtocolResult

type ProtocolResult struct {
	Version   string   `json:"version"` // "SSLv2", "SSLv3", "TLSv1.0" ... "TLSv1.3"
	Code      uint16   `json:"code"`
	Supported bool     `json:"supported"`
	Evidence  Evidence `json:"evidence"`
	Detail    string   `json:"detail,omitempty"` // alert name or error
}

ProtocolResult is the outcome of probing one protocol version.

type Report

type Report struct {
	SchemaVersion string    `json:"schemaVersion"`
	Target        Target    `json:"target"`
	Addresses     []string  `json:"addresses,omitempty"` // every address the name resolved to
	Address       string    `json:"address"`             // the one probed
	Started       time.Time `json:"started"`
	DurationMS    int64     `json:"durationMs"`
	Connections   int       `json:"connections"`

	// Protocols has one entry for every version tested, supported or not.
	Protocols []ProtocolResult `json:"protocols"`
	// Suites lists every cipher suite the server accepted, per protocol version.
	Suites []SuiteResult `json:"suites"`
	// Preference says, per version, whether the server or the client decides.
	Preference []PreferenceResult `json:"preference,omitempty"`
	// Groups lists supported key-exchange groups: TLS 1.3 groups, and the
	// ephemeral-ECDH curves TLS 1.2 and earlier servers use.
	Groups []GroupResult `json:"groups,omitempty"`
	// DH describes the finite-field Diffie-Hellman parameters of DHE suites.
	DH *DHResult `json:"dh,omitempty"`
	// Signatures lists the TLS 1.3 signature schemes the server can authenticate with (the
	// signatures stage); nil when the stage did not run or the report predates it.
	Signatures *SignatureResult `json:"signatures,omitempty"`

	Features     Features     `json:"features"`
	Certificates []CertResult `json:"certificates,omitempty"`
	// Negotiated is what a current client (Go's crypto/tls, which offers the
	// X25519MLKEM768 hybrid) actually negotiates with this server.
	Negotiated *Negotiated `json:"negotiated,omitempty"`
	// HSTS is whether the server sends Strict-Transport-Security, read from one
	// plain HTTP GET / made only when Options.HTTPChecks is set. nil when the
	// check was not attempted (the default) or the connection did not answer
	// with an HTTP response; true/false only when a response was observed.
	HSTS *bool `json:"hsts,omitempty"`
	// HSTSHeader is what the Strict-Transport-Security header said, parsed. nil
	// when no HTTP response was read.
	HSTSHeader *HSTSResult `json:"hstsHeader,omitempty"`
	// NoSNI is what a handshake without server_name returned: "same" (the same
	// leaf as with SNI), "different" (a separate certificate result with NoSNI
	// set), "failed", or empty when not attempted (the target is an address).
	NoSNI string `json:"noSni,omitempty"`

	// Stages record, for each part of the scan (the sections of the endpoint
	// page), whether it ran, why not, and what it cost.
	Stages []Stage `json:"stages,omitempty"`

	// Notes are non-fatal observations about the probing itself.
	Notes []string `json:"notes,omitempty"`
	// Incomplete is true when some probes were inconclusive (timeouts, budget);
	// absence of a finding is then not evidence of absence.
	Incomplete bool `json:"incomplete"`
}

Report is everything learned about one endpoint.

func Scan

func Scan(ctx context.Context, t Target, opts Options) (rep *Report, err error)

Scan probes one endpoint. It returns a non-nil Report whenever it learned anything, together with an error when the endpoint could not be scanned (for example, it is unreachable or does not speak TLS).

The scan is bounded by Options (timeouts, concurrency, a hard connection budget) and by ctx. Only handshake messages are exchanged: no application data is sent and no key material is generated.

A panic anywhere in the scan, including its probe goroutines, is recovered and returned as a *PanicError: a malformed answer from a hostile endpoint must fail that scan, not the process.

func (*Report) WriteText

func (r *Report) WriteText(w io.Writer) error

WriteText renders the report for a person. It states what was observed and the registry facts attached to it (IANA's Recommended flag, export/anonymous/NULL properties); it passes no verdicts. Evaluation is a separate layer.

type SigScheme

type SigScheme struct {
	ID        uint16 `json:"id"`
	Name      string `json:"name"`
	Algorithm string `json:"algorithm"`
	Detail    string `json:"detail,omitempty"`
	PQ        bool   `json:"pq,omitempty"`
	// Result is accepted (a ServerHello answered a hello offering only this scheme), refused (an
	// alert or a closed connection) or inconclusive (a timeout, a HelloRetryRequest, a network error).
	Result string `json:"result"`
	Why    string `json:"why,omitempty"`
}

SigScheme is one tested scheme with its result.

type SigSchemeInfo

type SigSchemeInfo struct {
	ID        uint16
	Name      string // the TLS SignatureScheme name: "mldsa65", "ecdsa_secp256r1_sha256"
	Algorithm string // the key it needs, in the catalogue's words: "ML-DSA-65", "ECDSA", "RSA", "Ed25519"
	Detail    string // curve or padding, for people: "P-256", "PSS (RSA key)"
	PQ        bool
}

SigSchemeInfo describes one TLS 1.3 signature scheme the stage tests.

func SigCandidates

func SigCandidates() []SigSchemeInfo

SigCandidates returns the schemes the signature stage tests, in the order it tests them.

type SignatureResult

type SignatureResult struct {
	Version string `json:"version"`
	// Control is the answer to the private-use scheme: refused is the only result that lets the
	// per-scheme answers mean anything.
	Control    string      `json:"control"`
	ControlWhy string      `json:"controlWhy,omitempty"`
	KeyShare   string      `json:"keyShare,omitempty"` // the group the shares were made for
	Schemes    []SigScheme `json:"schemes"`
}

SignatureResult is what the signature stage found (TLS 1.3 only).

func (*SignatureResult) Accepted

func (r *SignatureResult) Accepted() []SigScheme

Accepted returns the schemes the server answered, when the stage was conclusive.

func (*SignatureResult) Conclusive

func (r *SignatureResult) Conclusive() bool

Conclusive reports whether the per-scheme results can be relied on.

type Stage

type Stage struct {
	Name        string   `json:"name"`
	Outcome     string   `json:"outcome"`
	Reason      string   `json:"reason,omitempty"`
	ReasonCode  string   `json:"reasonCode,omitempty"`
	Connections int      `json:"connections"`
	Probes      []string `json:"probes,omitempty"` // what was sent, in words
	// Inconclusive lists the parts of a done stage that proved nothing
	// (timeouts, budget), so an absent finding there is not evidence of absence.
	Inconclusive []string `json:"inconclusive,omitempty"`
}

Stage is one part of the scan.

type StartTLSError

type StartTLSError struct {
	Proto string
	Reply string // what the server said, trimmed
	Why   string
}

StartTLSError says why a service did not switch to TLS: it refused, or it is not the protocol.

func (*StartTLSError) Error

func (e *StartTLSError) Error() string

type SuiteResult

type SuiteResult struct {
	Version string `json:"version"`
	ID      uint16 `json:"id"`
	Name    string `json:"name"`
	// Rank is the suite's position in the server's preference order (1 = most
	// preferred) when the server enforces its own order, and 0 when there is no
	// server ranking (the server follows the client's order, or is mixed).
	Rank int `json:"rank"`

	// IANA registry properties; see registry.Suite.
	IANARecommended string `json:"ianaRecommended"`
	Kx              string `json:"kx,omitempty"`
	Auth            string `json:"auth,omitempty"`
	Cipher          string `json:"cipher"`
	KeyBits         int    `json:"keyBits,omitempty"`
	Mode            string `json:"mode"`
	BlockBits       int    `json:"blockBits,omitempty"`
	MAC             string `json:"mac"`
	AEAD            bool   `json:"aead"`
	Export          bool   `json:"export,omitempty"`
	Anon            bool   `json:"anon,omitempty"`
	Ephemeral       bool   `json:"ephemeral,omitempty"`
}

SuiteResult is one accepted cipher suite together with its registry properties.

type Target

type Target struct {
	Host string `json:"host"`
	Port int    `json:"port"`
	// SNI is the server name sent in the handshake; empty when Host is an IP address.
	SNI string `json:"sni,omitempty"`
	// StartTLS names the plain-text protocol every connection negotiates before TLS (smtp, imap,
	// pop3, ftp, xmpp, ldap, postgres); empty for a service that speaks TLS from the first byte.
	StartTLS string `json:"starttls,omitempty"`
}

Target is one endpoint to probe.

func ParseTarget

func ParseTarget(s string) (Target, error)

ParseTarget parses "host", "host:port", "[v6]:port" or a bare IPv6 literal. The default port is 443.

func ParseTargetStartTLS

func ParseTargetStartTLS(s, choice string) (Target, error)

ParseTargetStartTLS parses a target that may carry a scheme ("smtp://mail.example.com", "imap://host:1143") and decides its STARTTLS protocol: the scheme's when there is one, else choice ("auto", "none" or a protocol) applied to the port. A scheme without a port takes the scheme's usual port.

Directories

Path Synopsis
Package registry holds the TLS cipher-suite and supported-group registries the prober works from.
Package registry holds the TLS cipher-suite and supported-group registries the prober works from.
gen command
Command gen turns IANA's TLS registry CSVs into the Go tables in the parent package.
Command gen turns IANA's TLS registry CSVs into the Go tables in the parent package.
Package testserver provides hermetic servers for testing the TLS prober without touching the network: real crypto/tls servers whose versions, suites and groups are configurable, and a scripted raw-TCP server for replies the standard library cannot produce (SSLv2/SSLv3, garbage, stalls).
Package testserver provides hermetic servers for testing the TLS prober without touching the network: real crypto/tls servers whose versions, suites and groups are configurable, and a scripted raw-TCP server for replies the standard library cannot produce (SSLv2/SSLv3, garbage, stalls).
Package wire implements just enough of the TLS/SSL wire protocol to probe a server: it builds ClientHello messages the standard library will not send (SSLv3, arbitrary suite and group lists, empty key shares) and parses what a server answers, up to the point where the rest is encrypted.
Package wire implements just enough of the TLS/SSL wire protocol to probe a server: it builds ClientHello messages the standard library will not send (SSLv3, arbitrary suite and group lists, empty key shares) and parses what a server answers, up to the point where the rest is encrypted.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL