Accept insecure certificates

Use the browserstack.acceptInsecureCerts capability to avoid invalid certificate errors when using a self-signed certificate to test your app.

Capability Description Expected values
browserstack.acceptInsecureCerts Avoid invalid certificate errors while your test is running true/false Default: false

Example:

DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.acceptInsecureCerts", "true");
var capabilities = {
	'browserstack.acceptInsecureCerts': 'true'
}
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("browserstack.acceptInsecureCerts", "true");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("browserstack.acceptInsecureCerts", "true");
desired_cap = {
	'browserstack.acceptInsecureCerts': 'true'
}
desired_caps = {
    'browserstack.acceptInsecureCerts': 'true'
}