Accessing SSL Private Key From a Servlet

后端 未结 4 902
故里飘歌
故里飘歌 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:05

    If I were writing a weberver I'd go to great lengths to prevent code from reading from the certificate store - I certainly wouldn't provide an API call for it!

    Usually the cert is stored as a file on the webserver's filesystem (not always) but for a site with any serious security on it, this would be encrypted and require a passphrase to decrypt. Since you are using a self-signed certificate its probably not encrypted - just import the cert from the file into the keystore.

提交回复
热议问题