草庐IT

HttpsServer

全部标签

java - 如何在 Web 服务的 Java HttpsServer 实现中获取客户端证书?

我使用SunWs实现编写了一个Web服务服务器,并使用HttpsServer进行发布(TLS相互身份验证)。httpServer=HttpsServer.create(...);ssl=SSLContext.getInstance("TLS");...ssl.init(keyFactory.getKeyManagers(),trustFactory.getTrustManagers(),newSecureRandom());configurator=newHttpsConfigurator(ssl){publicvoidconfigure(HttpsParametersparams){