Hello,
I have an app where I'd like to perform authentication using client certificates. From looking at the different settings in HttpServerOptions, I'd assume that all I need to do is something like this:
HttpServerOptions options = new HttpServerOptions()
.setHost("0.0.0.0")
.setPort(443)
.setSsl(true)
.setClientAuth(ClientAuth.REQUIRED)
.setPfxKeyCertOptions(new PfxOptions()
.setPath("/home/person/certs/server.p12")
.setPassword("password"));
However, when I attempt to connect to my app using either Chrome or Firefox, I get an error stating that the "connection was interrupted while the page was loading" or "could not get any response". If I use ClientAuth.REQUEST in the above code snippet, the page loads, but the browser doesn't ask which certificate to send, and if I attempt to get at the client certs by calling context.request().peerCertificateChain() I get a SSLPeerUnverifiedException with an error message saying that the client is not authenticated.
What else do I need to do to cause the browser to prompt me to send a client certificate? Would a reproducer be helpful?
Thanks,
Ian