Steps to enable HTTPS :
- Generate HTTPS Certificate
- Create your own certificate from keytool
- Buy the certificate
- Generate free certificate from OpenSSL
- Make changes in application.properties
- Add Bean for ServletWebServerFactory
Generate HTTPS Certificate
Generating certificate using keytool
Add bootsecurity.p12 file into your resource folder of springboot
Make changes in application.properties
application.properties