Robot Pepper
Robot Pepper

Reputation: 47

This springboot ssl never works

I configured ssl on springboot correctly:

server.port=8443 
server.ssl.key-store=classpath:springboot.p12 
server.ssl.key-store-password=*****  
server.ssl.key-store-type=PKCS12

It always says the same whatever port I try:The Tomcat connector configured to listen on port 8443 failed to start. The port may already be in use or the connector may be mis-configured. Action:Verify the connector's configuration, identify and stop any process that's listening on port 8443, or configure this application to listen on another port. Springboot will not start the application, it's so terrible as a framework with no way to debug it. Any experienced developer could know such a bug that stuck me forever?!

Upvotes: 0

Views: 206

Answers (2)

Robot Pepper
Robot Pepper

Reputation: 47

Its apache2 use it:

     SSLEngine On
    SSLCertificateFile /abc.crt
    SSLCertificateKeyFile /abc.key
    SSLCertificateChainFile /abc.ca-bundle

Upvotes: 1

Robot Pepper
Robot Pepper

Reputation: 47

It has to use this way exactly to make it work:

https://mkyong.com/spring-boot/spring-boot-ssl-https-examples/

Upvotes: 0

Related Questions