How to add a specific certificate to driver with chrome options ?

Hello everyon, i want to add a specific certificate to my chrome options, i have been struggling for hours. Let me know if you have any type of solution. here is the example simplified code:

def certificatePath = ‘path/to/certificate.pem’

ChromeOptions options = new ChromeOptions()

options.addArguments(“–ignore-certificate-errors”)

options.addArguments(“–allow-running-insecure-content”)

options.addArguments(“–allow-insecure-localhost”)

options.addArguments(“–user-data-dir=” + certificatePath)

DriverFactory.changeWebDriver(driver(options))

WebUI.navigateToUrl(‘example.com’)

Thanks in advance for any contribution towards this topic !!

1 Like

Hi,

Thank you for letting us know. Does anyone have the experience with this :smiley:

1 Like