Skip to main content
No Result Found

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:

desired_caps = {
    'browserstack.acceptInsecureCerts': 'true'
}
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.acceptInsecureCerts", "true");
desired_cap = {
	'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");

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 Check Circle