I am using spring boot and jetty for my REST application. I will be having certs as .pem files... CA - cacerts.pem, Cert - peer-cert.pem, Key - peer-key.pem So I want to know how can I start the spring boot application in the HTTPS mode making use of the above-mentioned certs.

I can not see any example with the above scenario. So, any example or documentation will be helpful to me.

Below is the sample code:

@RestController
@RequestMapping("app/v1")
public class ServiceController {

    @Autowired
    Service service;

    @GetMapping("users")
    public ResponseEntity<Object> getAllUsers() {
        try {
            return service.getSuccessResponseByType(service.getAllUsers(), HttpStatus.OK);
        } catch (Exception ex) {
            return service.getErrorResponseByType(ex.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
}

Comment From: wilkinsona

You need to create a keystore containing the pem files and then configure Jetty to use the keystore. You could, for example, follow the steps in the answer to this question on Stack Overflow. If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.