• Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache CXF Rest Webservices using HTTPS

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to figure out on how to set up Apache CXF client or implement one that calls REST endpoints which are secures using SSL. From the Apache CXF documentation, I understand that I have to set up Http Conduits, but it does not say clearly how this config file is read when I use the Apache CXF WebClient? Any ideas or any pointers to any documentation that would help me refer on the implementation details?
 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a sample code under "Configuring clients" in here, Is this what you are looking for?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara wrote:There's a sample code under "Configuring clients" in here, Is this what you are looking for?


I had a look at it, but unfortunately it was not what I wanted. I wanted to know how I make the Apache CXF run time aware of a trust store that I load programmatically. I think I have found the solution. I will post that here for reference.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what I did to load the trust store which contains the public certificate of my server.



In my call to the REST client, I do the following:


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!