Search
Joe Pruitt - A Software Architect's take on Network Security
You are here: DevCentral > Weblogs

posted on Monday, October 24, 2005 11:48 AM

I've seen so many requests as to how to get IBM's WebSphere to play nice with secure HTTPS based Web Service calls. I finally sat down today and loaded up IBM's WebSphere Application Server (v1.5.2) to try to get to the bottom of what is causing everyone so much grief.

My goal was to build an iControl app in WebSphere that could make secure calls to the BIG-IP using Apache Axis (v1.3) as the SOAP library. WebSphere includes Axis 1.0.2 but I'd recommend using a more up-to-date version in your deployment.

After about 20 minutes of trying to figure out the GUI, the creation of a simple console utility, and how to add external libraries to the project I finally had it. Here's the steps I went through.

  • 1. install WebSphere 5.1.2
  • 2. Create iControl jar file    
    • a extract the iControl SDK
    •       
    • b. cd {sdk_root}/sdk/samples/soap/java/apache/axis
    •       
    • c. edit setenv.bat with local java settings
    •       
    • d. run make.bat to create the binding sources
    •       
    • e. cd bindings/iControl
    •       
    • f. javac -classpath .. *.java
    •       
    • g. javac -classpath .. holders/*.java
    •       
    • h. cd ../..; mkdir obj; cd obj
    •       
    • i. xcopy ../bindings/* . /s /e
    •       
    • j. del /s *.java
    •       
    • k. jar cvf iControl.jar iControl
    •    
  • 3. Create new project in WebSphere
  • 4. Load up one of the sample files
  • 5. Add the following external libraries to the project
  •    
    • {from WebSphere's runtime}          
      • ibmjsse.jar
      •             
      • xml.jar
      •          
    •       
    • {from axis}          
      • activation.jar
      •             
      • axis.jar
      •             
      • commons-discovery.jar
      •             
      • commons-logging.jar
      •             
      • jaxrpc.jar
      •             
      • mail.jar
      •             
      • wsdl4j-1.5.1.jar
      •          
    •       
    • {from sun}          
      • saaj.jar
      •          
    •       
    • {iControl}          
      • iControl.jar
      •          
    •    
  • 6. Add the following to the java.security file in your WebSphere runtime

    security.provider.3=com.ibm.jsse.IBMJSSEProvider

    This was found in this technote from IBM:

    java.net.SocketException: Algorithm SSL not available

  • 7. Compile and run

The trick really was finding out which combination of jar files from which distribution to combine together to avoid all the runtime errors. I think my list above about covers it. Also, the default java.security file doesn't contain the IBMJSSEProvider so that needed to be added. Funny thing is that it was added to a version of that file in one of the runtimes in the distribution, just not the default one. Odd...

Hopefully this helps others out there...

-Joe

[Listening to: Surrender - U2 - War (05:34)]

Posted In: iControl,

Feedback

3/23/2011 3:48 PM
Gravatar ?
Test

Let Me Know What You Think


Please use the form below if you have any comments, questions, or suggestions.

Title:
 
Name:
 
Email: (so we can show your gravatar)
Website:
Comment: Allowed tags: blockquote, a, strong, em, p, u, strike, super, sub, code
 
Please add 2 and 1 and type the answer here:

Blog Stats

Posts:379
Comments:1067
Stories:1
Trackbacks:301
  

Article Categories

  iRules
  

Image Galleries

  

Joe's bookshelf: read

The Lost Gate
4 of 5 stars
This one started slow but I got really got into it about 1/3 of the way through. If you are an Ender's Game fan, you'll probably like this one as well.

goodreads.com


82,243 Members in 102 Countries and Growing!

Join DevCentral Today!

About DevCentral

DevCentral has been a successful, thriving community for many years. We have always strived to bring you the best technical documentation, discussion forums, blogs, media and much more that we can.

So dive in, get familiar with DevCentral. We hope you like it, we hope it makes your job easier, and lets you get that much more power out of the community. To learn more, make sure to check out the Getting Started section. And if you have any problems, or think something could be easier to use, drop us a line to let us know.

Got It !

We've received your comment and transmitted it directly to DevCentral HQ.

Thanks for taking time to let us know what's on your mind. At DevCentral | Community Matters!

Get In Touch With Us

Have questions, suggestions or just want to get something off your chest?

Use our handy form below to Direct Connect with DevCentral Mission Control.

Send Us Feedback       or