Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to deal with self-signed certs #41

Open
bergr01 opened this issue Sep 23, 2015 · 2 comments
Open

Need a way to deal with self-signed certs #41

bergr01 opened this issue Sep 23, 2015 · 2 comments

Comments

@bergr01
Copy link

bergr01 commented Sep 23, 2015

hi,

I've imported a self-signed cert for my local (intranet) web server into my windows certificate store and also imported it into the 'servers' section of the Options => Advanced => Certificates of the Firefox running in the context of the currently logged in user, however when I launch the Firefox via karma it seems to run in a brand new/temporary Firefox user profile and all my manual steps seem to have no effect - i.e. test fails due to

myhost.foo.bar.com:7443 uses an invalid security certificate. The certificate is not trusted because it is self-signed. (Error code: sec_error_unknown_issuer)

Tips/suggestions welcome - I couldn't find anything from quick googling on how to tell Karma to launch Firefox using a specific user profile or using specific set of 'permanent' exceptions that have been configured...

@barakhaim
Copy link

I've had the same problem. I solved it using this: #47.

@LoveIsGrief
Copy link

LoveIsGrief commented Oct 8, 2017

There are multiple sources on how to do it programmatically that could be implement:

  • Offical doc from mozilla (basically autoconfig.js which imports the file when firefox is started)
  • Using certutil: stackoverflow
  • Pre-import the cert into an existing profile and distribute the cert.db file source.
    It's also mentioned in the official doc, but they recommend against it. For testing purposes it seems like it would be sufficient.

LoveIsGrief added a commit to LoveIsGrief/videojs-externals that referenced this issue Oct 8, 2017
It's not yet supported and logged in karma-runner/karma-firefox-launcher#41

#21 Use FirefoxHeadless for testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants