The standard way to securely access a nREPL server has been
ssh with port forwarding, and letting the nREPL server only bind to
This will secure and encrypt the communication.
ssh may not be available, and thus you need to
0.0.0.0 to make the nREPL server available.
By using TLS, Transport Layer Security, the successor to
Secure Sockets Layer (SSL), we can open a secure connection
directly on the nREPL server. The server will require
each client to authenticate itself.
will show how to generate the certificates and keys required
for running a TLS nREPL server and client.