Local site testing with BrowserStack and self-signed certificates

12.7k views Asked by At

I have started looking into testing our site with BrowserStack. However, I'm having issues with live-testing (as opposed to automated testing with Selenium, which mostly works fine) a site we're developing as we're serving it with a self-signed certificate.

Manually approving the certificate doesn't bother me as much as the fact that some Ajax request are failing (at least on IE10) due to security issues and this makes it impossible to actually manually test the site.

An acceptable solution would be to somehow add our self-signed cert. into the list of trusted root CAs. However, I haven't found out how to upload files into the BrowserStack test environment (not sure if that's even possible, really).

Any ideas ?

4

There are 4 answers

3
jakub.g On BEST ANSWER

April 2021 update:

BrowserStack has shipped a toggle to trust self-signed certs.

It is available on iOS and Android devices for now.

self-signed cert browserstack

4
Shlomi Király On

I contacted BrowserStack about this issue, and their formal response is: "We currently do not support installing client certificates on the remote machines. However, this is on our list, and we’ll keep you posted."

Hopefully this issues will be resolved soon and I'll post a different answer here.

1
Zymotik On

When the "Cannot Verify Server Identity" dialogue pops up, click details, then 'Trust'. This will work if all calls are to the same domain as the website.

0
Jonathan Petitcolas On

When it happens, open the "Network" tab, and open in a new tab the request which is failing. If it is "just" a certificate issue, you would then be able to bypass the warning. Then, your request should work correctly.