• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Calling a web service using https post

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using websphere6.0 and i did the following to call a https webservice. I have a cert.pfx certificate that was given by the service provider.

1. I downloaded the following unrestricted policy files from IBM local_policy.jar and US_export_policy.jar and replaced the files present in the ....\runtimes\base_v6\java\jre\lib\security directory.
2. Opened the ikeyman present in the ....\runtimes\base_v6\bin\ folder.Selected Open-->Keydatabase type as PKCS12, file name as the cert.pfx, gave the file location, Clicked OK. It challenged for a password. I entered the password of the PFX file. The certifcate got loaded under personal certficate. Then i selected the certificate and imported it to the CACERTS store.
3. Then i wrote the following code.


I am getting an exception: javax.net.ssl.SSLHandshakeException: unknown certificate;

Do i need to do anything further? Am i proceeding correctly? Any help is really appreciated.

Thanks in advance,
Ram


 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic