1

I've implemented a basic Rest servlet - that accepts HTTP requests - quite easily. Now I have to configure it to work with SSL (i.e. validate certificate upon request) This is the skeleton of the code I have so far:

   @RestController
public class MgmtController  {

    @RequestMapping(value = "/mgmt", method = RequestMethod.POST)
    public void post(@RequestBody CustomImpl request, HttpServletRequest httpRequest, response httpResponse) {    

        System.out.println(request);    
    }

can it even be done programmatically?

thanks

shemerk
  • 257
  • 5
  • 16

1 Answers1

0

If you are using Tomcat server, you can find all about SSL configuration here

kerradus
  • 36
  • 4