title: Adding SSL to Spring Boot application
body: <p>With the command</p>
  
  <pre><code>keytool -genkey -alias localhost -keyalg RSA -keystore KeyStore.jks -keysize 2048
  </code></pre>
  
  <p>i generated keystore.
  Next, I placed the generated file in <code>resource</code> and I have added to the configuration</p>
  
  <pre><code>#server
  server:
    ssl:
      key-store: classpath:KeyStore.jks
      key-store-password: JonkiPro
      key-password: JonkiPro
  </code></pre>
  
  <p>(I set the same passwords when generating the file)</p>
  
  <p>But the application has stopped working and the server does not respond. The program compiles correctly but does not find the server
  <a href="https://zapodaj.net/e71e6875b721b.png.html" rel="nofollow noreferrer">https://zapodaj.net/e71e6875b721b.png.html</a></p>
  
  <p>Do I need to do something else?</p>