For certificates search Openssl generate certificates.
Openssl generate certificates
12345678910111213
FROM emqx:5.1.6ENV EMQX_RPC__PORT_DISCOVERY=manualENV EMQX_RPC__DRIVER=sslENV EMQX_RPC__TCP_SERVER_PORT=5369ENV EMQX_RPC__SSL_SERVER_PORT=5369ENV EMQX_RPC__PROTOCOL=sslENV EMQX_RPC__CACERTFILE=/ssl/ca.crtENV EMQX_RPC__CERTFILE=/ssl/rpc.crtENV EMQX_RPC__KEYFILE=/ssl/rpc.keyCOPY ssl /ssl/