-1

Hi I want to enable ssl in my spring rest application. That should be accessible by providing certificate only. How can I achieve this. It's new topic for me.

Lalit Thakare
  • 23
  • 1
  • 6
  • 1
    Possible duplicate of [Spring Boot - enable and configure SSL certificate](https://stackoverflow.com/questions/49534219/spring-boot-enable-and-configure-ssl-certificate) – Sofo Gial Nov 16 '18 at 10:51
  • See [X.509 Authentication in Spring Security](https://www.baeldung.com/x-509-authentication-in-spring-security). Your question is too broad for SO unfortunately. Try it first, and if it doesn't work, post your issue here. – rustyx Nov 16 '18 at 10:51

1 Answers1

0
  1. Get a certificate or create one.
  2. Enable it:

    server.ssl.key-store: keystore.p12

    server.ssl.key-store-password: mypassword

    server.ssl.keyStoreType: PKCS12

    server.ssl.keyAlias: tomcat

K.Kostadinov
  • 194
  • 10