Reputation: 3
I want to deploy a Spring Boot Application, generated with JHipster, to Azure App Service and enable HTTPS/SSL. I bought an App Service Certificate and bound it to a custom domain of my app service. How can I use that certificate in a config file of my Spring Application?
I also set the WEBSITE_LOAD_CERTIFICATES
variable to my ceritificate's thumbprint.
server:
port: 443
ssl:
key-store: keystore.p12
key-store-password: <your-password>
keyStoreType: PKCS12
keyAlias: <your-application>
I don't know how to access the certificate from here. What is the path to the keystore, and how do I obtain the password and key alias?
Upvotes: 0
Views: 1590
Reputation: 5549
You just need to configure the SSL certificate to your web app on Azure portal.
Because there is a front tier before your spring boot application. The front tier will handle the security connections (HTTPS) with clients, but communicate with your web app with HTTP.
For more detailed explanation, you may refer to this post: Is current request being made over SSL with Azure deployment
Upvotes: 1