Version
1.49.0
Steps to reproduce
Currently setPfxPath does not properly add client certificates.
Code snippet:
ClientCertificate clientCertificate = new ClientCertificate("https://localhost:8443");
clientCertificate.setPassphrase("passphrase");
clientCertificate.setPfxPath(Paths.get("/path/to/client_keystore.p12"));
List<ClientCertificate> clientCertificates = List.of(clientCertificate);
Browser.NewContextOptions options = new Browser.NewContextOptions();
options.setIgnoreHTTPSErrors(true);
options.setClientCertificates(clientCertificates);
context = browser.newContext(options);
Expected behavior
PKCS12 certificates are properly added to the context.
Actual behavior
The certificate is not be present in the context.
Additional context
I create a PR: #1746
Environment
- Operating System: Ubuntu 20.04
- Browser: Chromium
- Java version: java version "21.0.5" 2024-10-15 LTS
- Maven: 3.9.6