Jump to Navigation

Me on Twitter

  • @louistouzet et suspense = buzz ;-) Etant donnée l'heure de mon tweet, peu de chances.. 11 years 6 weeks ago
  • @ippontech plz... bon ou pas bon pour #devoxxfr ? 11 years 6 weeks ago
  • Jeu @IPPONTECH : le mot mystère est tatami 11 years 6 weeks ago
  • @apkudo it's chrome on ubuntu. I'll send a ss 11 years 6 weeks ago
  • @apkudo I've seen very good enhancements last days : still few visual bugs but you're on the good way ! 11 years 6 weeks ago
  • @humble bundle 5 with #android looks less attractive than 4 + bids are going fast = I'll probably leave this one... 11 years 6 weeks ago
  • @joenrv assisté à ta (super) prez hier : en voyant le nbre de tweets @falcon_android je comprends mieux le travail à fournir ;-) #GoodJob 11 years 6 weeks ago
  • @louistouzet le stock de #nexus4 est remis à flot ! 11 years 6 weeks ago
  • @CedN "@DidierGirard: AngularJS, ce n'est pas pour jouer : http://t.co/Joh6cofBKn" 11 years 7 weeks ago
  • I should have read this article last week. It looks amazing ! The Official #Ubuntu Tablet Videos http://t.co/yCQMfebrdb 11 years 7 weeks ago

ssl

java HttpClient 3.x : a portable SSL Socket Factory implementation

I was just trying to implement client and server authentication over SSL on IBM Websphere 6 (JRE 1.4.2)...

[...]

It may sound awkward in 2012, but if you wish the HTTPS server to identify your Java client (versus : only the server is identified), you will have to write your own implementation of a socket factory.

The Java Runtime Environment doesn't provide ready-to-use classes to do this. Yes : there is javax.net.ssl.SSLSocketFactory.getDefault() but it requires to set some system (therefore global) properties to point to the certificates files !!!

Even with Apache's HttpClient (at least version 3.x), you have to use a custom SSLProtocolSocketFactory.

The HttpClient SSL Guide provides sample code to implement mutual client and server authentication ; unfortunately the latest stable release of it (contrib 3.1) is bound to Sun's API with imports such as com.sun.net.ssl.KeyManagerFactory. Needless to say that this will not work on an IBM Websphere JRE...

This article contains an implementation of a SSLProtocolSocketFactory for HttpClient, to whom may be interested...

Syndicate content