HTTPS "not secure" with Chrome
See original GitHub issueWhen running the following code, everything works fine, except that left of the URL Chrome displays “Not Secure” on HTTPS sites. How do I get rid of that?
BrowserMobProxy proxy;
WebDriver driver;
proxy = new BrowserMobProxyServer();
proxy.start();
final Proxy seleniumProxy = ClientUtil.createSeleniumProxy( proxy );
final String hostIp = Inet4Address.getLocalHost().getHostAddress();
seleniumProxy.setHttpProxy( hostIp + ":" + proxy.getPort() );
seleniumProxy.setSslProxy( hostIp + ":" + proxy.getPort() );
final FirefoxOptions fOptions = new FirefoxOptions();
fOptions.setCapability( CapabilityType.PROXY, seleniumProxy );
driver = new FirefoxDriver( fOptions );
final Har har = proxy.newHar( "https://google.de/" );
driver.get( "https://google.de/" );
List<HarEntry> entries = proxy.getHar().getLog().getEntries();
for (int i = 0; i < entries.size(); i++) {
System.out.println("Response status: " + entries.get(i).getResponse().getStatus());
}
final WebElement searchTextField = driver.findElement( By.name( "q" ) );
searchTextField.sendKeys( "foo" );
System.out.println( "### HAR after sendKeys: " + har );
searchTextField.submit();
System.out.println( "### HAR after submit: " + har );
proxy.stop();
driver.close();
I’m using ChromeDriver 2.44.609545 and browsermob-core 2.1.5.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Check if a site's connection is secure - Google Chrome Help
In Chrome, open a web page. · To check a site's security, to the left of the web address, check the security status...
Read more >Seeing a “Not Secure” Warning in Chrome? Here's Why and ...
The reason you are seeing the “Not Secure” warning is because the web page or website you are visiting is not providing an...
Read more >How to Fix the HTTPS Not Secure Error - Seer Interactive
With a few simple clicks, you can identify what is causing your HTTPS page to be not secure directly in Chrome using DevTools....
Read more >How To Fix the “HTTPS Not Secure” Message in Chrome
1. Purchase an SSL Certificate. To fix the 'not secure' message on your website, the first thing you need to do is purchase...
Read more >How to Fix the HTTPS Not Secure Message in Chrome Easily
How To Solve Not Secure HTTPS Warning Message In Google Chrome · Inspect Element (Chrome DevTools) – If SSL/TLS Certificate Installed & Still...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ChromeOptions options = new ChromeOptions(); options.setCapability(CapabilityType.PROXY, seleniumProxy); options.addArguments(“–ignore-certificate-errors”);
— this is chrome not FirefoxOptions , you can google
You may need to import the CA root https://github.com/lightbody/browsermob-proxy#ssl-support