I’m developing a POC using playwright Java and I face error related to Bad certification, I understand that we need to have a method to handle the certs which are handled in Keystore and trustore respectively.
Error Message :
Step failed
com.microsoft.playwright.PlaywrightException: Error {
message='write EPROTO A4650000:error:0A000412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:c:wsdepsopensslopensslsslrecordrec_layer_s3.c:1586:SSL alert number 42
name='Error
stack='Error: write EPROTO A4650000:error:0A000412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:c:wsdepsopensslopensslsslrecordrec_layer_s3.c:1586:SSL alert number 42
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
}
I have tried to set the “setIgnoreHTTPSErrors” as true, but my service demands certs for the response, Please help me out to know a way to set certificate in Playwright using Java.
New contributor
Abinesh Br is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.