Mutual TLS for vertx-web Web server

1,153 views
Skip to first unread message

Greg Gigon

unread,
Oct 27, 2016, 6:27:09 AM10/27/16
to vert.x
Hi guys
A quick question regarding Vertx Web module.
I would like to create Mutual TLS (Vertx server validating Client certificate as well as Client validating Server certificate) between my Vert.x Microservice and Clients.
Is there a simple configuration option for Vert.x HTTP server to do that or would I need to implement AuthProvider ?
Greg

Greg Gigon

unread,
Oct 27, 2016, 9:32:29 AM10/27/16
to vert.x
Answering my own question after a brief chat with @Sticky on irc #vertx channel.

It is possible to specify 

new HttpServerOptions().setClientAuth(ClientAuth.REQUIRED).setTrustOptions(...)

where trust options should contain details of Trust store, holding Trusted client certificates.

Greg

Ps. Transcript of IRC conversation https://echelog.com/logs/browse/vertx/1477519200

Tim Fox

unread,
Oct 27, 2016, 3:04:35 PM10/27/16
to vert.x

Greg Gigon

unread,
Oct 27, 2016, 8:10:50 PM10/27/16
to vert.x
Thanks Tim
It's one of those days when I look at docs and still don't see it :)
Reply all
Reply to author
Forward
0 new messages