Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & Accessibility Testing

Local Testing Using Self-Signed Certificates

Guide to using Self-Signed Certificates in Live for testing website features only available in secure contexts

Why use secure websites for testing?

A number of features and APIs accessible by modern websites are restricted to secure contexts i.e. only to sites accessible through HTTPS. Some of these APIs include getUserMedia, Service Workers, Storage API & Web Authentication API (Check this page for a more comprehensive list of these HTTPS-only APIs).

Testing local or dev environment websites for features using such APIs correctly therefore necessitates configuring an HTTPS environment for the website. Instead of issuing a certificate from a certificate authority for such non-customer facing testing environments, self-signed certificates are used.

Self-signed certificates are digital certificates for websites which are not signed by a publicly-trusted certificate authority (CA). Given the CA in such certificates are not recognized & trusted, while such certificates are not suitable for production environments they are perfect for local and testing environments on machines where roots for such certificates can be installed.

While remote machines/devices in Live sessions are not directly accessible for installing self-signed certificates for the website under test, enabling the Self-Signed Certificate feature enables a user to test out websites where such functionality is required.

Testing websites with self-signed certificates with Live

Accessing a local HTTPS website using self-signed certificates in Live would show a warning page by the browser indicating the website is not secure.

Warning page when Self-Signed Certificate is not enabled

This is because the self-signed certificate used by the local website is not recognized or installed on the real device used in Live. Turning on the Self-Signed Certificate feature in Live causes a trusted dummy certificate to be installed on the remote device which enables the local website to be accessed in secure context (using HTTPS).

Details on why site is not secure by the browser

Steps to toggle the Self-Signed Certificate feature in a Live session:

Step 1: Option for enabling or disabling self-signed certificates can be toggled from the Settings menu in the in-session toolbar

Accessing Self-Signed Certificate toggle button from in-session toolbar

Step 2: Toggle the switch next to Enable/Disable Self-Signed Certificate. Toggling this option on/off restarts the session with the corresponding settings

Restarting the session by toggling the Self-Signed Certificate feature

Step 3: After enabling this option for a session, the user may access their HTTPS website with self-signed certificate used & may continue testing as required. The website should now be marked as fully secure by the browser being used in the Live session

Enabling Self-Signed Certificate shows website as fully secure by the browser used in Live session

Note: The Network Throttling feature cannot currently be used simultaneously during a session with Self-Signed Certificate enabled.
Note: The Self-Signed Certificate feature is not supported on the following OS/device combinations in Live: iOS 9 and below, Firefox on Windows, Firefox 69 and below on MacOS and Vivo / Oppo / Huawei / Sony devices in Android.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy