Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

configuring security using client server SSL certificate in RESTful web sevices with dynamic web app  RSS feed

 
Priyank Sinha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are developing two web application Application A : Restful web-services running on glassfish Server . Application B : Dynamics web application running on Tomcat Server .

I am accessing Application A only by my Application B , I dont want any other application to access my Application A . For this I have planed to install a Client-server certificate in the respective server , so that my Application A will only be access by my Application B , I want to block other Application to access my Application A. Can you please tell me how to install client - server certificate in the respective server ???

If anyone have better alternative to obtain this then please explain me .

Please explain with Example if possible .

Thank You
 
Vivek Chulani
Greenhorn
Posts: 6
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could implement basic authentication through your tomcat server (username+password) upon accessing the RESTful webservice.

Hope this is sufficient enough

http://www.avajava.com/tutorials/lessons/how-do-i-use-basic-authentication-with-tomcat.html

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!