Documentation ¶
Overview ¶
Package ja3x contains code to produce ja3 signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an HTTP server that returns JA3 information. This server only supports HTTP/1.1 and HTTP/2.
This server will use its own internal CA. You should use Server.ClientConfig to obtain a suitable tls.Config or Server.CertPool to obtain a suitable x509.CertPool. If you use Server.CertPool keep in mind that you also need to specify a ServerName in the tls.Config for an handshake to complete successfully. By default [Server.Config] uses "example.com" as the server name but you can override that.
Please, use the NewServer factory to create a new instance: the zero-value Server is invalid and will panic if used.
func (*Server) ClientConfig ¶
ClientConfig returns a tls.Config where the ServerName is set to "example.com" and the RootCAs is set to the value returned by the Server.CertPool method.