title: ignore-certificate-errors + headless puppeteer+google cloud
body: <p>The website I am trying to access has ssl <strong>certificate-errors</strong></p>
  
  <p>I am using this version of puppeteer <code>"puppeteer": "1.13.0"</code>.</p>
  
  <p>When I try to <code>await page.goto('http://bad_ssl_certificate_website')</code> I have timeout error on <strong>google cloud</strong> only.</p>
  
  <blockquote>
    <p>TimeoutError: Navigation Timeout Exceeded:</p>
  </blockquote>
  
  <p>However, It works perfectly fine <strong>locally</strong> on MAC.</p>
  
  <p>I think the problem is ssl-certificate-errors for my website, because if I try with "google.com" it works okay in both environments.
  I used <a href="https://www.sslshopper.com" rel="noreferrer">https://www.sslshopper.com</a> to check ssl certificates,and It mentioned this.</p>
  
  <blockquote>
    <p>The certificate is not trusted in all web browsers. You may need to
    install an Intermediate/chain certificate to link it to a trusted root
    certificate. Learn more about this error. You can fix this by
    following DigiCert's Certificate Installation Instructions for your
    server platform. Pay attention to the parts about Intermediate
    certificates.</p>
  </blockquote>
  
  <p>When I was using older version of <strong>puppeteer</strong> I had problems <strong>locally</strong> as well. 
  I saw the exactly the same error </p>
  
  <blockquote>
    <p>'TimeoutError: Navigation Timeout Exceeded:'</p>
  </blockquote>
  
  <p>Updating to the newest version of puppeteer has fixed only running the puppeteer locally, but it has not fixed the puppeteer running on <strong>google cloud</strong></p>
  
  <p>This is how I setup puppeteer to lunch.</p>
  
  <pre><code>   const browser = await puppeteer.launch({
        headless: true,
        ignoreHTTPSErrors: true,
        args: [
          "--proxy-server='direct://'",
          '--proxy-bypass-list=*',
          '--disable-gpu',
          '--disable-dev-shm-usage',
          '--disable-setuid-sandbox',
          '--no-first-run',
          '--no-sandbox',
          '--no-zygote',
          '--single-process',
          '--ignore-certificate-errors',
          '--ignore-certificate-errors-spki-list',
          '--enable-features=NetworkService'
        ]
      });
  </code></pre>
  
  <p>I found some related issues:
  <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=877075" rel="noreferrer">https://bugs.chromium.org/p/chromium/issues/detail?id=877075</a></p>