This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Feb 10, 2012, 3:46 AM
7 Posts

Domino as Webservice Client with SLL certificate

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Webservice
  • Replies: 1
Hi,
 
i consume a web service on domino from an other application server. I do these things in Java.
 
Now this application server is secured with htttps. 
 
How can i import the certificate which the domino needs to consume the https secured webservice ? 
 
I tryed something like this: 
     System.setProperty("javax.net.ssl.trustStore", keyStore);
     System.setProperty("javax.net.ssl.trustStorePassword", password);
            
            org.apache.axis.client.Service service = new org.apache.axis.client.Service();
            org.apache.axis.client.Call _call = (Call)service.createCall();
            _call.setTargetEndpointAddress("http://myServer:8080/My/ServiceEndPoint/");
            _call.setUsername(appSet.aeu_getEASUsername());
            _call.setPassword(appSet.aeu_getEASPassword());
 
Therefore I got acces denied  error.
 
Is it possible to add a selfsigned certificate to the domino key store? 
 
Notice Domino is the Client in this scenario.
 
 
 
Mar 12, 2012, 8:01 AM
272 Posts
Re: Domino as Webservice Client with SLL certificate
 Hi,
 
I think you have to give access in the java.policy-file first.
Try to add the following lines: 
 
grant {
  permission java.util.PropertyPermission "javax.net.ssl.trustStore", "write";
  permission java.util.PropertyPermission "javax.net.ssl.trustStorePassword", "write";
};
 
Hope this helps
Sven 
 

This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.