- Using IDE
- Import as maven project
- Right click -> build
- Right click on Application.java and run as 'Spring boot'/'java application'
- Using cmd/shell
- cd SpringSecurity-Boot-SSL
- mvn clean install
- mvn spring-boot:run
- A keystore has already been created and places in resources.
- The configuration related to the keystore and the server can be found in application.properties
server.port=8443
server.ssl.enabled=true
server.ssl.protocol=TLS
server.ssl.key-store-password=mystorepass
server.ssl.key-store=classpath:myKeystore.p12
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=tomcat
server.ssl.key-password=mystorepass
- To create your own certificate following command can be used, make sure to update server properties based on your own keystore.
- The above certificate is not signed so you would need to trust the certificate.