-
Notifications
You must be signed in to change notification settings - Fork 268
" Not Secure " while browsing with selenium-wire #120
Comments
Thanks for raising this. What does the browser say on websites that it can't connect to - do you get a specific error message? |
Hi, It's not so much about the browser itself, i can browse any websites as I would on a regular browser / selenium. But for example if I try to login on some websites, the request wouldn't get through. An example would be this : Working fine on regular browser/seleniuim but in selenium wire it's just an unknown error systematically. I think its because in selenium wire there is always the " not secure " message at the top left corner of the browser ? In regular selenium i dont have that 👍 |
Ok thanks. The "not secure" indicator in the browser address bar indicates the browser doesn't trust Selenium Wire's root certificate, but this wouldn't normally stop you from accessing or logging into a site. I'll see if I can reproduce with nike.com. |
Thank you, that is what i thought too. In the mean time is there any way to make the browser trust selenium wire's certificate ? |
Have you manually installed the To get the
Or alternatively download it from here: https://raw.githubusercontent.com/wkeeling/selenium-wire/master/seleniumwire/proxy/ca.crt |
Yes I have tried installing it on both mac and windows, however, im not sure what you mean by install it into chrome ? I only installed the certificate in both system : in the key chain access app on mac os and just double clicking on windows, that should do the job ? I couldnt find anyway to install a certificate directly in chrome edit : i managed to install it directly in my chrome in windows and managed to login ! thank you so much ! however i cant see the post requests it makes with
edit 2 : it couldnt get all the requests because ome requests dont have content-type and it made the script stop, problem solved and everything is working perfectly now, thank you so much for your time and your work !!!!! 😄 |
Great, glad to hear it's working! |
@hobocow @wkeeling Hi bros, I have the same problem to access https://www.nike.com.br. Could you tell me how to install ca.crt for windows? I do not even know where to begin with. I´m using Chrome and the new version of Selenium Wire (v2.00) edit1: I got it thanks to this answer #97 (comment) |
@P-Leo10 The root certificate is here: https://raw.githubusercontent.com/wkeeling/selenium-wire/master/seleniumwire/proxy/ca.crt Copy all the text (including the BEGIN and END lines) and save it in a new file called |
@wkeeling thank you very much for the help, it worked. The only problems that have not yet come out are: |
@P-Leo10 could you post the code that you're using to create the webdriver and the full error traceback you're seeing? |
@wkeeling code:
error:
moreover, thanks to your Selenium-wire, I am trying to create a way to overcome recaptcha v3, if you can give me a means to communicate with you in a non-public way, it would be great. |
It might be worth switching the backend to see if that makes a difference. Try that first, but happy to continue the conversation non-publicly if no joy. |
@wkeeling i try with
but when i used this, the problem continues and comes back the problem with 'Not secure'. |
With switching the backend to mitmproxy, you will need to ensure that you install the mitmproxy root certificate (it is different to the |
Hey wkeeling, I tried to follow this link, as I am having the same problem as the original poster and am trying to work the issue out by adding the root certificate to chrome, but the link now appears to be dead. Do you have a working link to this file anymore? Thanks so much |
@shanebenlolo Thanks for the message. The certificate has moved since that comment containing the link was posted. You should be able to download it here: https://github.com/wkeeling/selenium-wire/raw/master/seleniumwire/ca.crt (also accessible from the Certificates section in the doc). You can also get the certificate by running the following command:
|
It's important to import the certificate in the "Trusted Certificates" Tab. |
This is the only solution I know of: |
If you're using a Linux based system the certificate can also be installed from the terminal using the following command: certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "Selenium Wire" -i /path/to/ca.crt Change If you get a "command not found" then apt install libnss3-tools |
@KarateKugler I can't find that tab inside google chrome settings, I can only find "Trusted People" and "Trusted Publishers". I have tried importing the certificate to both tabs but still, when I try to open any website using selenium-wire, it fails to find a certificate for it. |
@reeemsalah there should be a tab that looks like the following: |
@wkeeling Thank you so much, it worked 💯 |
seleniumwire和undetected_chromedriver,证书不安全警告问题! 解决办法,新开一个CMD窗口,输入命令: |
@wkeeling |
nvm, I realize you own this package |
As an update, the link is deprecated, you can download |
@wkeeling I tried your solution for Linux-based systems, but it did not work. Is there any workaround? |
Try this: Open your chrome, go to |
when i try to add it, i get error: The Private Key for this Client Certificate is missing or invalid |
@Act0r1 same issue |
Doesnt work -> Client certificate is missing or invalid |
Are you adding it in the “Trusted Root Certification Authority" section? @Ghost6446 Try this |
First, generate the certificate - python -m seleniumwire extractcert Maybe it will help someone |
summary:
i made nssdb-py to replace problem is: cloudflare will block the https proxy with self-signed certificate |
the ca.crt file must be imported as an authority certificate:
|
|
On some websites, requests cannot be made through the browser because the connection is not considered as a secure connection.
I tried installing the certificate on my computer (mac) and tried to start selenium wire with a local chrome profile too, still not working.
Same on firefox.
Any workaround ?
The text was updated successfully, but these errors were encountered: