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.

Self-Signed Certificate Error

See original GitHub issue

What are you trying to achieve?

Run the test on localhost with a self-signed ssl certificate.

What do you get instead?

 -- FAILURES:
1) Check @dev "before each" hook: Before for "I create a new user":
   error: request to https://localhost/graphql failed, reason: self signed certificate

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
allenhwkimcommented, Apr 17, 2018

@APshenkin what’s option for puppeteer? ---- EDIT ----- I found this works for Puppeteer codecept.json

{
  ...
  "helpers": {
    "Puppeteer": {
      ....
      "chrome": {
        "ignoreHTTPSErrors": true
      }
    }
  }
10reactions
sibyaugustinecommented, Nov 19, 2020

For running tests with self-signed ssl certificate: Nightmare: Add this in Nightmare config:

switches: {
                'ignore-certificate-errors': true
            },

WebdriverIO: Chrome: nothing to do Firefox:

desiredCapabilities: {
                "acceptInsecureCerts": true
            }

SeleniumWebdriver/Protractor: Chrome: nothing to do Firefox:

capabilities: {
                "acceptInsecureCerts": true
            }

Are there something like this for Playwright webkit browser?

ignoreHTTPSErrors should work.

Playwright: {
  url: 'http://localhost:8080',
  show: true,
  browser: 'chromium',
  ignoreHTTPSErrors : true
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

A Simple Explanation of SSL Certificate Errors & How to Fix ...
An SSL certificate error occurs when a web browser can't verify the SSL certificate installed on a site. Rather than connect users to...
Read more >
I get "Certificate is not trusted because it is self-signed" error ...
There might be several possible reasons why you get this error when you try to access your web site: A self-signed certificate was...
Read more >
nodejs - error self signed certificate in certificate chain
What I get is Error: self signed certificate in certificate chain. When I use Postman I can import the client certificate and key...
Read more >
Why are self signed certificates not trusted and is there a way ...
A self-signed certificate is inherently untrusted because anyone can generate a self-signed certificate. Anyone including an entity that deliberately pretends ...
Read more >
Resolving SSL Self-Signed Certificate Errors
Step1: Get a self-signed certificate of the remote server · Get Certificate using OpenSSL · Get Certificate using the Web browser · Trust ......
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