wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

Using user:pass auth proxies cause Invalid SSL certificates #505

Open colbyhill21 opened 2 years ago

colbyhill21 commented 2 years ago

Using proxies with User:pass auth leads to invalid SSL certificates on every site. Here is the option I'm using to specify the proxy.

selenium_wire_options = {
      'proxy': {
          'https': f'https://{proxy_user}:{proxy_password}@{proxy_ip}:{proxy_port}',
      }
}

The proxy works although not being able to use https is troublesome. Is there any workaround for this? I'm unable to use proxies that are not password based authentication.

dabula-s commented 2 years ago

'https': f'https://{proxy_user}:{proxy_password}@{proxy_ip}:{proxy_port}',

try 'https': f'http://...'. mb the problem is in your proxies which don't support https.

wkeeling commented 2 years ago

@colbyhill21 appreciate you raised this a while back now, but did you manage to resolve the problem?

huyangnl commented 1 year ago

Maybe you should use stun clash mode in your VPN..