vert-x/vert.x — pull request #392 by haughki (2012-10-16 21:59:19+00:00)
Title: Adds two new, public methods: ConnectionBase.getPeerCertificateChain() a...

...nd HttpServerRequest.getPeerCertificateChain(). The methods return unmodifiable lists of the X509 cert chain for the incoming client request (if the request is ssl).

The cert chain ultimately comes from the netty channel. This gets passed into ConnectionBase. The connection is a member of DefaultHttpServerRequest, so we're now able to get the peer certs from the request via the connection. This seemed to make more sense than adding the channel dependency to the request class itself.

NOTE: when I tried to run my vertical with the latest vertx source, ran into a problem (something with "langs.properties). To get vertx to run with the code I've been working on, I forced my vertx source to the 1.2.3.final tag. This commit is against that tagged version of the source. This is a small change, and I expect it will merge fine with the current vertx source.