docker-selenium icon indicating copy to clipboard operation
docker-selenium copied to clipboard

How to setup docker containers to allow self-signed certs?

Open go2guy opened this issue 10 years ago • 5 comments

I'm looking for a way to allow the browser to continue to my website URL that has a self-signed cert.

Locally I can add the exception to my JRE cacert with the following for local Selenium tests.

1.. keytool -import -alias {AliasName} -file ~/Desktop/{Certfile} -keystore $JAVA_HOME/jre/lib/security/cacerts 2.. Password change 3.. Answer yes

How do you allow self-signed certs in the docker containers?

Image(s):
Any Docker Version:
Client: Version: 1.12.2 API version: 1.24 Go version: go1.6.3 Git commit: bb80604 Built: Tue Oct 11 05:27:08 2016 OS/Arch: darwin/amd64 Experimental: true

Server: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 23:54:00 2016 OS/Arch: linux/amd64

Expected Behavior -

A way to to open the browser and self-signed certs.

Actual Behavior -

Url is opened by needs to allow the self-signed cert to be accepted before URL endpoint is reached.

go2guy avatar Oct 17 '16 18:10 go2guy

Perhaps you can use a browser profile that accepts the certificate

zuernBernhard avatar Oct 19 '16 09:10 zuernBernhard

Yeah tried that and selenium test did not work but a manual test on the container did.

go2guy avatar Oct 20 '16 13:10 go2guy

perhaps related to #313 ?

ddavison avatar Oct 21 '16 19:10 ddavison

@go2guy, if you were using Firefox and this is actually related to #313, the most recent image already has Firefox 53 that allows use insecure certificates.

Could you please try again to use the additional capability and report back to see how it went?

diemol avatar Jun 25 '17 17:06 diemol

Closing this since we didn't get feedback and this issue was addressed in #518

diemol avatar Sep 08 '17 14:09 diemol