FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

Error: x509: certificate signed by unknown authority #75

Open jindameias opened 1 year ago

jindameias commented 1 year ago

I use the following code:

      session = tls_client.Session(
          client_identifier="chrome112",
          random_tls_extension_order=True
      )

      response = session.get(url="https://192.168.111.30:18444/something")

then raise tls_client.exceptions.TLSClientExeption: failed to do request: Get "https://192.168.111.30:18444/something": x509: certificate signed by unknown authority.

I just wanted to test it, so I made a certificate myself, which seemed to not respond properly. If I want to test normally, what should I do?

itzuimao commented 2 months ago

I also encountered the same problem because I used Charles for packet interception and found that the installed Charles certificate had expired on my computer. You may need to check your certificate, it may be helpful for you