Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / June 2005

Tip: Looking for answers? Try searching our database.

Expired certificates being ignored

Thread view: 
acalcium@gmail.com - 09 Jun 2005 08:00 GMT
Hi there all,
I have a client application that talks to a server application via AXIS
SOAP.

We use a 2 way authentication SSL certificate exchange, ie. using a
trustStore
and a keyStore.

Anyway, the truststore of the client uses a server certificate that has
expired.
(keytool says it expired in 2004).

However, I do not get any exception regarding this when connecting to
the server.
The application proceeds as normal (ie. like certificate not expired).

I did look around and saw similar sufferers but alas no pointers.
http://forum.java.sun.com/thread.jspa?threadID=560690&tstart=0

I do set the trustStore and keyStore programmatically.
ie.
   System.setProperty( "javax.net.ssl.trustStore", trustStore );
   System.setProperty( "javax.net.ssl.keyStore", keyStore );
   System.setProperty( "javax.net.ssl.keyStorePassword",
keyStorePassword );
   System.setProperty( "javax.net.ssl.trustStorePassword",
trustStorePassword );

but I dont use any custom trustManager or anything like that or specify
any security policies. Am just using whatever the default is.

Also, I am using the java class URL to connect, so the https/ssl
exchange
protocol is hidden from me.
ie.
   URL url = new URL( "https://www.someurlxyz.com.kk/webservice" );
   MyIFService service = new MyIFServiceLocator( );
   MyIF  pp = service.getPinger( url );

   int  response = pp.ping( "acalcium" );

ie. the above code succeeds when I am expecting a
"javax.net.ssl.SSLHandshakeException: certificate expired".
Or is it supposed to be working like this by default?

Would anyone have any ideas to try?

Would the use of Axis have affected this?
All ideas are most appreciated.

This guy has the opposite problem :-)
http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200412.mbox/%3C
20041220220018.9527.qmail@web20922.mail.yahoo.com%3E


Many thanks in advance,
Chai
acalcium - 18 Jun 2005 03:34 GMT
> Hi there all,
> I have a client application that talks to a server application via AXIS
[quoted text clipped - 51 lines]
> Many thanks in advance,
> Chai

For posterity, this issue is here as well.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.