mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Bosteels" <mbosteels....@gmail.com>
Subject Re: Getting clients certificates
Date Thu, 11 Jan 2007 17:01:20 GMT
Could you use

javax.net.ssl.SSLSession SSLFilter.getSSLSession(IoSession session)
and
SSLSession.getPeerCertificates() ?

http://mina.apache.org/report/1.1/apidocs/org/apache/mina/filter/SSLFilter.html#getSSLSession(org.apache.mina.common.IoSession)
http://java.sun.com/j2se/1.5.0/docs/api/javax/net/ssl/SSLSession.html#getPeerCertificates()

Maarten

On 1/11/07, Trustin Lee <trustin@gmail.com> wrote:
> Hi Niklas,
>
> On 1/12/07, Niklas Gustavsson <niklas@protocol7.com> wrote:
> > Hi
> >
> > When using MINA with a SSLFilter and client authentication, the client
> > would supply its certificate chain during the handshake. Is there
> > anyway I can retrive these within the MINA API? If using the old IO
> > sockets, you would get them by calling:
> > sslSocket.getSession().getPeerCertificates()
> >
> > I've been looking through the code without finding anything obvious.
>
> Is there any example code that uses getPeerCertificates() to get some
> hint on *when* to provide the certificates?
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP key fingerprints:
> * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
>

Mime
View raw message