Forum Discussion
Tim_Arp_112576
Nimbostratus
Jul 29, 2004IBM WebSphere 5.1 SOAP and Certs
I'm fairly new to Java, but that is the language of choice at my company. I have programmed in about every language execept Java. So I'm picking it up as I go, not too bad so far. Anyway I'm writing a Servlet based on the simple example of listing the Virtual Servers on a bigip. I'm using SOAP to connect. I'm getting an error on connecting that the cert is unknown. I have tried using the InstallCert class that Joe wrote. That doesn't seem to work, that is I run it and no other output (no news is good news, right?). Is there another way to either get the self-signed cert on the system or configure the code to ignore it like I would in the browser?
Error opening socket: javax.net.ssl.SSLHandshakeException: unknown certificate
- Tim_Arp_112576
Nimbostratus
It's working now. I didn't end up change the keystore because that reference was correct. I deleted the keystore I was trying. Next, I used a tool from IBM called ikeyman. This created the keystore with some default verisign certs in it. Then I ran installCert. So far so good. Keyman -list showed the certs including the one I just added. (the wierd thing was when I ran keyman -list initially I did not get prompted for a password.) Ran my code and all is well. - installCert.java will just suck the certificate out of a ssl site and place it in the user.home/.keystore file. This will place the file in the home directory of the account you are logged into.
System.setProperty("javax.net.ssl.trustStore", "/trustedstuff/.keystore"); ... call.invoke(...); ...
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects