question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTPS "not secure" with Chrome

See original GitHub issue

When 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:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
endlesshhcommented, Dec 24, 2019

ChromeOptions options = new ChromeOptions(); options.setCapability(CapabilityType.PROXY, seleniumProxy); options.addArguments(“–ignore-certificate-errors”);

— this is chrome not FirefoxOptions , you can google

0reactions
getvivekvcommented, Mar 31, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found