Spring - Configure SSL

SpringBoot Configure SSL

SSL can be configured declaratively by setting the various server.ssl.* properties, typically in
application.properties or application.yml. The following example shows setting SSL properties in
application.properties:

server.port=8443
server.ssl.key-store=classpath:keystore.jks
server.ssl.key-store-password=secret
server.ssl.key-password=another-secret

see ssl details  for details of all of the supported properties.

Using configuration such as the preceding example means the application no longer supports a
plain HTTP connector at port 8080. Spring Boot does not support the configuration of both an HTTP
connector and an HTTPS connector through application.properties. If you want to have both, you
need to configure one of them programmatically. We recommend using application.properties to
configure HTTPS, as the HTTP connector is the easier of the two to configure programmatically.


Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations