0
我想解密是通过使用我的网站的公共密钥在客户端加密的消息:访问SSL证书的服务器上(私钥)
URL httpsURL = new URL("https://mediashuttle.com/");
HttpsURLConnection connection = (HttpsURLConnection) httpsURL.openConnection();
connection.connect();
Certificate cert = connection.getServerCertificates()[0];
PublicKey publicKey = cert.getPublicKey();
现在在服务器上(Tomcat)的侧面我想要解密传递给Servlet的消息。你能告诉我如何检索Tomcat中的私钥来解密邮件吗?
谢谢!
这就像一个魅力,谢谢! – Emmanuel