/
How To Add SSL Support to API Projects

How To Add SSL Support to API Projects

To use SSL, you must configure the application.yml file to support SSL.

Configure your application.yml to support SSL

  1. Go to src/main/resources and open application.yml.

  2. Add the following configuration:

    server: ssl: key-store: classpath:{PATH_TO_KEYSTORE} key-store-password: {YOUR_KEYSTORE_PASSWORD} key-store-type: {KEY_STORE_TYPE} key-alias: {The alias mapped to the certificate} # e.g, tomcat key-password: {YOUR_KEYSTORE_PASSWORD} port: 8443
  3. Right click on API project and navigate to Open Legacy → Run Application.

  4. Go to https://localhost:8443/swagger to test SSL connection.

 

 

 

 

 

Related content