HTTPS

  1. Configuration in eventmesh-runtime
  1. eventMesh.properties (add the following configurations)
  2. eventMesh.server.useTls.enabled=true // Default value: false
  3. Configuring environment variable
  4. -Dssl.server.protocol=TLSv1.1 // Default value: TLSv1.1
  5. -Dssl.server.cer=sChat2.jks // Place the file in the conPath directory specified by the startup script start.sh
  6. -Dssl.server.pass=sNetty
  1. Configuration in eventmesh-sdk-java
  1. // Create a producer
  2. LiteClientConfig eventMeshHttpClientConfig = new LiteClientConfig();
  3. ...
  4. // Enable TLS
  5. eventMeshHttpClientConfig.setUseTls(true);
  6. LiteProducer producer = new LiteProducer(eventMeshHttpClientConfig);
  7. // Configure environment variables
  8. -Dssl.client.protocol=TLSv1.1 // Default value: TLSv1.1
  9. -Dssl.client.cer=sChat2.jks // Place the file in the conPath directory specified by the application
  10. -Dssl.client.pass=sNetty