Add support for JA3N / JA4 TLS fingerprinting

This commit is contained in:
WeebDataHoarder
2025-04-12 02:13:05 +02:00
parent f6f00a54da
commit ca49c99cad
5 changed files with 372 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ func main() {
if *acmeAutocert != "" {
switch *acmeAutocert {
case "letsencrypt":
*acmeAutocert = "https://acme-v02.api.letsencrypt.org/directory"
*acmeAutocert = acme.LetsEncryptURL
}
acmeManager := newACMEManager(*acmeAutocert, createdBackends)
@@ -262,6 +262,16 @@ func main() {
"directory", *acmeAutocert,
)
tlsConfig = acmeManager.TLSConfig()
} else {
cert, err := tls.LoadX509KeyPair("localhost.crt", "localhost.key")
if err != nil {
log.Fatal(fmt.Errorf("failed to load certificate: %w", err))
}
tlsConfig = &tls.Config{
GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
return &cert, nil
},
}
}
var wg sync.WaitGroup