Spring-boot: Allow Spring Boot to run HTTPS / HTTP protocols at the same time

Created on 17 Jun 2015  路  2Comments  路  Source: spring-projects/spring-boot

Spring boot have some properties to config web port and SSL settings, but once a SSL certificate is set the http port turns into https port.

So, there's now way to keep both ports running on it, for example: 80 an 443 at the same time? Or maybe to have the same port number which supports Http / Https protocols.

As you can see, there only properties for one port, in this case "server.ssl" is enabled, what makes http port be disabled automatically.

##############
### Server ###
##############
server.port=9043
server.session-timeout=1800
server.ssl.key-store=file:///C:/Temp/config/localhost.jks
server.ssl.key-store-password=localhost
server.ssl.key-password=localhost
server.ssl.trust-store=file:///C:/Temp/config/localhost.jks
server.ssl.trust-store-password=localhost
stackoverflow

Most helpful comment

In my opinion this is an improvement to be done in Spring Boot, I really opened in Stackoverflow to share opinions... but in here I was expecting to get a possible solution maybe in one next release.

All 2 comments

I see you've also posted this on Stack Overflow Please don't post the same question in multiple places, particularly without indicating that you've done so, as it's likely to waste people's time.

In my opinion this is an improvement to be done in Spring Boot, I really opened in Stackoverflow to share opinions... but in here I was expecting to get a possible solution maybe in one next release.

Was this page helpful?
0 / 5 - 0 ratings