简体   繁体   中英

How to enable HTTPS on tomcat server for multiple applications

I'm running two applications on my tomcat sevrer (one is in spring boot, second is in angular which uses the first one) now I want to enable https connections to both of my applications. I have generated the following files:

  • MyDomain.cer
  • MyDomain.key
  • MyDomain.csr

Now I want to secure connection to my applications using TLS 1.2. And now I'm stuck. According to Tomcat guide i should create a keystore file to store my keys, then I should generate new key. I want to use the files I have already generated, how can I archive this?

Could you describe or redirect me to a page where I can find a step-by-step guide how to configure https on tomcat with the files I have?

found solution:

  1. generate jsk key
  2. put it in tomcat keystore folder (if doesnt exist, create it)
  3. configure server xml to point to key storage with your generated key

more detailed instruction on how to can be found here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM