Skip to main content
No Result Found

Accept Insecure Certificate

If you want to use self signed certificates to test the iOS app, the acceptInsecureCerts needs to be true in your XCUITests execution command. By default its set to false on BrowserStack. This will help to avoid any invalid certificate errors while using self-signed certificate.

Parameter Required / Optional Description
acceptInsecureCerts Optional Set this parameter to true to avoid invalid certificate errors while using self-signed certificate to test your app

Command

curl -X POST "https://api-cloud.browserstack.com/app-automate/earlgrey/build" -d "{"devices": ["iPhone 8 Plus-11"], "appDir": "bs://<hashed appid>", "acceptInsecureCerts": "true", "deviceLogs" : "true"}" -H "Content-Type: application/json" -u "YOUR_USERNAME:YOUR_ACCESS_KEY"

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