/tls-client-auth-samples

TLS Client Authentication Client & Server Samples

Primary LanguageJava

TLS客户端认证的例子

本项目提供TLS客户端认证的例子,包括Client和Server。

准备工作

本项目已经在certs目录下准备好了Client和Server需要的证书、私钥、Keystore和Truststore。如果你想自己动手做一遍可以看证书准备工作,你也可以跳过本步骤直接看下面的文章。

如何使用例子

启动本项目中的任意Server端,然后用任意Client端访问。如果用本例子提供的服务端启动脚本,则访问地址统一是https://localhost:8443

Client例子

Server例子

对TLS不了解?