imroc / req

Simple Go HTTP client with Black Magic
https://req.cool
MIT License
4.12k stars 334 forks source link

ImpersonateFirefox - ECDSA verification failure #315

Open powellnorma opened 6 months ago

powellnorma commented 6 months ago

Using ImpersonateChrome instead works fine.

package main

import (
    "fmt"
    "log"

    "github.com/imroc/req/v3"
)

func main(){
    client := req.C().ImpersonateFirefox()

    // tls: invalid signature by the server certificate: ECDSA verification failure
    resp, err := client.R().Get("https://www.facebook.com/") 

    if err != nil {
        log.Fatal(err)
    }

    fmt.Println(resp.String())
}
danielboros commented 6 months ago

https://github.com/refraction-networking/utls/issues/274

gaukas commented 6 months ago

https://github.com/refraction-networking/utls/issues/274

My full response in utls#274.

TL;DR: Servers which accept delegated_credentials (34) will not work with uTLS's Firefox parrots unless someone implements the real support of this extension for uTLS.