1

With the command

keytool -genkey -alias localhost -keyalg RSA -keystore KeyStore.jks -keysize 2048

i generated keystore. Next, I placed the generated file in resource and I have added to the configuration

#server
server:
  ssl:
    key-store: classpath:KeyStore.jks
    key-store-password: JonkiPro
    key-password: JonkiPro

(I set the same passwords when generating the file)

But the application has stopped working and the server does not respond. The program compiles correctly but does not find the server https://zapodaj.net/e71e6875b721b.png.html

Do I need to do something else?

1 Answer 1

1

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

the application will no longer support plain HTTP connector at port 8080. Spring Boot doesn’t support the configuration of both an HTTP connector and an HTTPS connector via application.properties

documentation

Sign up to request clarification or add additional context in comments.

1 Comment

this mean that 8449 port is in use in your system you can terminate any process in this port if you use windows [this link will help ][(therealdanvega.com/blog/2015/04/16/…)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.