You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2003/05/15 20:35:26 UTC

cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse JSSESupport.java

jfarcand    2003/05/15 11:35:26

  Modified:    util/java/org/apache/tomcat/util/net/jsse JSSESupport.java
  Log:
  Get rid of the warning in the logs when no Client-Cert is available.
  
  Kido to Bill for pointing me the fix.
  
  Revision  Changes    Path
  1.6       +6 -1      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
  
  Index: JSSESupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JSSESupport.java	29 Mar 2003 07:37:25 -0000	1.5
  +++ JSSESupport.java	15 May 2003 18:35:26 -0000	1.6
  @@ -110,7 +110,12 @@
       protected java.security.cert.X509Certificate [] 
   	getX509Certificates(SSLSession session) throws IOException {
           X509Certificate jsseCerts[] = null;
  -	jsseCerts = session.getPeerCertificateChain();
  +    try{
  +	    jsseCerts = session.getPeerCertificateChain();
  +    } catch (Throwable ex){
  +       // Get rid of the warning in the logs when no Client-Cert is
  +       // available
  +    }
   
   	if(jsseCerts == null)
   	    jsseCerts = new X509Certificate[0];
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org