axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Marchant <driedto...@gmail.com>
Subject Re: Trust in any certificate
Date Thu, 20 Jan 2005 16:57:24 GMT
Also you might want to take a look at this article: 
http://wikihip.cern.ch/twiki/bin/view/WP2/TrustManagerUsage

Since it uses Axis as an example.

- Dan


On Thu, 20 Jan 2005 08:27:22 -0800, Dan Marchant <driedtoast@gmail.com> wrote:
> Joaco,
> 
> You could try creating your own TrustManager
> (-Djavax.net.ssl.TrustManager=<your class> ),  protocol handler for
> https (-Djava.protocol.handler.pkgs=<your class>) or better yet try
> and get around it with making your own Hostname verifier
> (-Djavax.net.ssl.HostnameVerifier=<your class>).
> 
> If you're on weblogic there are a couple other options available to
> you that are more proprietary and most of the time each app server has
> it's own flavor of cert trust verification.
> 
> Try and use the Hostname verifier option it might work out for what
> you are trying to do.
> 
> - Dan
> 
> 
> On Wed, 19 Jan 2005 14:59:30 -0300, Joaco <figueire@adinet.com.uy> wrote:
> > I´ve a problem with ssl, I need  my WS trust in any certificate,
> >
> > For it, I did a TrustSocketFactory that trust in any certificate and
> >  I modify  HttpSernder class :
> >
> > ????????????
> >   if (protocol.equals("https")) {
> >           TrustSocketFactory factory = new TrustSocketFactory();
> >           return  factory.createSocket(host,port);
> >
> >     }else {
> >         SocketFactory factory = SocketFactoryFactory.getFactory(protocol,
> > getOptions());
> >      return factory.create(host, port, otherHeaders, useFullURL);
> >      }
> > ??????.
> > and it´s work !
> >
> > The problem is?. Now I can´t modify axis.jar, so?..
> > somebody can help me ???? pls !
> >
> > can I set SocketFactoryFactoy.getFactory()?by ouside (like a propertie )
> >  so that it uses my factory
> > Thanks
> > Joaco
> >
> >
>

Mime
View raw message