Accessing SSL Private Key From a Servlet

后端 未结 4 908
故里飘歌
故里飘歌 2021-01-21 03:31

I\'m running Apache Tomcat locally and have installed a self signed certificate using OpenSSL. I also have a servlet running.

What I want to do is the following: The se

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-21 04:27

    Servlet can access any data on your machine including keys. The only situation can be when Apache and Tomcat are running from different user names and keys are locked to be accessed only by Apache user name. You can do a trick in this case as su a process under Apache user name and read the file.

提交回复
热议问题