1.config in eventmesh-runtime

eventMesh.properties(add config as follows)
eventMesh.server.useTls.enabled=true   //default value is false


config env varible
-Dssl.server.protocol=TLSv1.1   //default value is TLSv1.1
-Dssl.server.cer=sChat2.jks     //put the file in confPath which is configured in start.sh 
-Dssl.server.pass=sNetty

2.config in eventmesh-sdk-java

// create producer
LiteClientConfig liteClientConfig = new liteClientConfig();
...
// enable TLS
liteClientConfig.setUseTls(true);
LiteProducer producer = new LiteProducer(liteClientConfig);


config env varible
-Dssl.client.protocol=TLSv1.1   //default value is TLSv1.1
-Dssl.client.cer=sChat2.jks     //put the file in confPath of your application
-Dssl.client.pass=sNetty