类 TlsHelper

java.lang.Object
com.alibaba.nacos.common.tls.TlsHelper

public final class TlsHelper extends Object
Utils for build SSLContext.

Currently only supports client-side

Making your client support TLS without authentication

 System.setProperty(TlsSystemConfig.TLS_ENABLE, "true");
 

Making your client support TLS one-way authentication

 System.setProperty(TlsSystemConfig.TLS_ENABLE, "true");
 System.setProperty(TlsSystemConfig.CLIENT_AUTH, "true");
 System.setProperty(TlsSystemConfig.CLIENT_TRUST_CERT, "trustCert");
 
作者:
wangwei