Thank you !!!

this is the version of the java installed on the linux server :

java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20000623 (JIT enabled:
jitc)
)

What do you think about it ?

-----Original Message-----
From: Gokul Singh [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 28, 2000 5:37 AM
To: [EMAIL PROTECTED]
Subject: Re: How can i get a certificate in a servlet ?


Hi,

this is a snippet from the servlet specs 2.2.
<snippet>
In servlet containers that are running in a Java 2 Standard Edition, v 1.2
or Java 2 Enterprise
Edition, v 1.2 environment, if there is an SSL certificate associated with
the request, it must be
exposed to the servlet programmer as an array of objects of type
java.security.cert.X509Certificate and accessible via a ServletRequest
attribute of javax.servlet.request.X509Certificate.
For a servlet container that is not running in a Java2 Standard Edition 1.2
environment, vendors
may provide vendor specific request attributes to access SSL certificate
information.
</snippet>

May be this might be of some help.

regds,
Gokul

----- Original Message -----
From: "Robert Nicholson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 27, 2000 1:07 AM
Subject: Re: [SERVLET-INTEREST] How can i get a certificate in a servlet ?


> Start by printing out the keys to your incoming request.
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > BERWART Thierry
> > Sent: Friday, August 25, 2000 12:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: How can i get a certificate in a servlet ?
> >
> >
> > Hello
> >
> > I run my servlets on apache with mod SSL configurated for mutual
> > authentification
> > (the client must also send his certificate to the server for
> > authentification)
> >
> > And i want to get the client certificate in a servlet. But i
> > don't know how
> > i can do that !
> >
> > I tried to use the follow code but it seems to work only with Java Web
> > Server.
> >
> >   String cipherSuite = (String)
> > req.getAttribute("javax.net.ssl.cipher_suite");
> >   out.println("Cipher Suite" + cipherSuite);
> >
> >   if(cipherSuite != null)
> >   {
> >     X509Certificate certChain[] = (X509Certificate) req.getAttribute
> > ("javax.net.ssl.peer_certificates");
> >     if (certChain != null)
> >     {
> >       for (int i=0; i< certChain.length; i++)
> >       {
> >         out.println("Client Certificate ["+i+"] = " +
> > certChain[i].toString());
> >       }
> >     }
> >   }
> >
> >
> > Please HELP ME ! :-)
> >
> > Thierry
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to