How to get over with SSL Cert verification on Google Chrome

10,641 views
Skip to first unread message

Sunitha Byju

unread,
Feb 9, 2012, 2:22:44 PM2/9/12
to Selenium Users
Hi All,

I'm not able to run my test because of the SSL Cert Verification on
Google Chrome. Is there any way that i can get over with this SSL
Cert Verification on google chrome? I know there are solutions to
this for FF and IE but GC. I would really appreciate any help on
this.

thanks,
sunitha

bis

unread,
Feb 9, 2012, 9:28:06 PM2/9/12
to seleniu...@googlegroups.com
http://code.google.com/p/selenium/wiki/ChromeDriver

this shows you how to set the flags to ignore certificate errors


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Sunitha Byju

unread,
Feb 10, 2012, 9:41:56 AM2/10/12
to Selenium Users
Hi Bis,

Thanks for the help. I looked up and there is a flag that i can use
to ignore the certificate errors, --ignore-certificate-errors. I
followed the steps to setup the flag on
http://www.chromium.org/developers/how-tos/run-chromium-with-flags,
but when i enter the flag as "C:\Documents and Settings\Administrator
\Local Settings\Application Data\Google\Chrome\Application\chrome.exe
--ignore-certificate-errors" and click apply i'm getting an error. It
saying to make sure the path or the value entered in the target
field. Am i doing anything wrong here?

Sunitha

Krishnan Mahadevan

unread,
Feb 10, 2012, 9:44:59 AM2/10/12
to seleniu...@googlegroups.com
Sunitha,
Are you trying this via automation or manual ?
Via automation, you dont need to do all of that.
Just follow the instructions documented here and pass in the flag "--ignore-certificate-errors" to the DesiredCapabilities object prior to spawning chrome. That should suffice.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

Sunitha Byju

unread,
Feb 10, 2012, 9:56:32 AM2/10/12
to Selenium Users
Hi Krishnan,

Thanks for the quick help offered.

I'm facing the issue with automation only. I'm very new to Selenium,
so i use keywords for my automation, not yet comfortable with
scripting yet. In that case, can you tell me what i can do in my
keywords file to bypass this SSL Cert verification issue?

Below is the keyword that I'm using.

Open Browser To Login Page
Open Browser ${LOGIN URL} ${BROWSER}
Set Selenium Timeout 15s
Maximize Browser Window
Wait Until Page Contains Element username

Sunitha


On Feb 10, 9:44 am, Krishnan Mahadevan
<krishnan.mahadevan1...@gmail.com> wrote:
> Sunitha,
> Are you trying this via automation or manual ?
> Via automation, you dont need to do all of that.
> Just follow the instructions documented
> here<http://code.google.com/p/selenium/wiki/ChromeDriver#Starting_Chromium...>

Krishnan Mahadevan

unread,
Feb 10, 2012, 10:07:45 AM2/10/12
to seleniu...@googlegroups.com
Am not too familiar with the keywords stuff that you are talking about :)
Is that built out out of a custom framework at your end ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


bis

unread,
Feb 10, 2012, 10:15:28 AM2/10/12
to seleniu...@googlegroups.com
driver = Selenium::WebDriver.for :chrome, :switches => %w[--ignore-certificate-errors]

This is how you can send the switches to chrome in ruby you actually need to pass them when you create the instance of the driver

Sunitha Byju

unread,
Feb 10, 2012, 10:35:53 AM2/10/12
to Selenium Users
i'm using Robotic Framework.

if you shed some light on how to do the scripting on Selenium, i can
try that out. :)

On Feb 10, 10:15 am, bis <bis...@gmail.com> wrote:
> driver = Selenium::WebDriver.for :chrome, :switches =>
> %w[--ignore-certificate-errors]
>
> This is how you can send the switches to chrome in ruby you actually need
> to pass them when you create the instance of the driver
>
> On Fri, Feb 10, 2012 at 10:07 AM, Krishnan Mahadevan <
>
>
>
>
>
>
>
> krishnan.mahadevan1...@gmail.com> wrote:
> > Am not too familiar with the keywords stuff that you are talking about :)
> > Is that built out out of a custom framework at your end ?
>
> > Thanks & Regards
> > Krishnan Mahadevan
>
> > "All the desirable things in life are either illegal, expensive, fattening
> > or in love with someone else!"
>
Reply all
Reply to author
Forward
0 new messages