You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alain Brousseau <al...@intertrade.com> on 2005/08/26 16:50:48 UTC

Custom SSLServerSocket implementation

Hi,
I need to tell Tomcat 5.5 to use my custom SSLServerSocketFactory for 
backwards compatibility with our client-side software.
It was relatively easy with Tomcat 4.1 (using a Factory element in the 
Connector configuration) but with tomcat 5.5 it doesn't work. The 
Connector seems to ignore the factory attribute.

How can this be done with Tomcat 5.5 ?
Thanks
Alain Brousseau


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


Re: Custom SSLServerSocket implementation

Posted by Bill Barker <wb...@wilshire.com>.
"Alain Brousseau" <al...@intertrade.com> wrote in message 
news:430F2C48.5060204@intertrade.com...
> Hi,
> I need to tell Tomcat 5.5 to use my custom SSLServerSocketFactory for 
> backwards compatibility with our client-side software.
> It was relatively easy with Tomcat 4.1 (using a Factory element in the 
> Connector configuration) but with tomcat 5.5 it doesn't work. The 
> Connector seems to ignore the factory attribute.
>
> How can this be done with Tomcat 5.5 ?

You can't implement a custom SSLServerSocketFactory in TC 5.5.  You can 
however implement a custom SSLImplementation.  You need to extend 
o.a.t.u.net.SSLImplementation (implementing the abstract methods), and then 
use something like:
   <Connector port="443" secure="true" scheme="https"
            sSLImplementation="com.myfirm.mypackage.MySSLImplementation" />

> Thanks
> Alain Brousseau 




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