【发布时间】:2013-01-14 08:33:14
【问题描述】:
我想使用密钥库来保存私钥。我使用这个私钥来加密数据源密码。 我使用 keytool 生成了 myfile.keystore 文件,并在 Tomact server.xml 文件中添加了以下配置。
<Connector
protocol="HTTP/1.1"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="myfile.keystore" keystorePass="password"
clientAuth="false" sslProtocol="TLS"/>
如何读取这个私钥以在 Java 代码中使用?
【问题讨论】:
标签: java tomcat keystore keytool private-key