title: How to configure existing SSL .cer to Spring Boot Application
body: <p><strong>I have configured this certificate with nginx on production and working fine. But I want to configure it in spring boot application itself.</strong></p>
  <ol>
  <li>I have generated CSR from some machine to get the certificate</li>
  <li>SSL provider sent me a .cer certificate</li>
  </ol>
  <p>Using below command converted .cer to .p12</p>
  <pre><code>keytool -import -alias springboot -file &lt;mydomain&gt;.crt -keystore &lt;mydomain&gt;.p12 -storepass &lt;somepassword&gt;
  </code></pre>
  <p>Configured Spring Boot properties as below</p>
  <pre><code>server.port=443
  server.ssl.key-store=classpath:&lt;mydomain&gt;.p12
  server.ssl.key-store-password=&lt;somepassword&gt;
  server.ssl.keyStoreType=PKCS12
  server.ssl.key-alias=springboot
  </code></pre>
  <p>But spring boot application is failing to start with below error</p>
  <pre><code>Caused by: java.lang.IllegalArgumentException: Alias name [springboot] does not identify a key entry
  </code></pre>