Skip to content

License Server

The various pieces of Salvus need to communicate with one of Mondaic's servers to ensure a valid license. Please make sure outgoing HTTPS connections from whichever machine Salvus runs on are allowed to this server:

  • URL:
  • Port: 443 (HTTPS)

License File

Your license credentials are stored in ~/.salvus-licenses.toml, a TOML file with the following group for each licensed product:

product = "SomeProduct"
product_license_version = "1.2.3"
server_url = ""
username = "SomeUser"
password = "SomePassword"
group = "SomeGroup"

Mondaic provides this file for you.


CA Store Issues

Salvus communicates with the server over HTTPS - thus some central authority (CA) deciding which certificates to trust is needed. Operating systems usually have this - Salvus tries its best to find the CA cert store of the systems it runs on - if it fails you might have to manually provide it via the SALVUS_CA_BUNDLE_PATH env variable:

# If your operating system provides no CA file, download for example the curl
# one. This is a converted version of Firefox' CA cert store. If you are
# security concious (which you should be) please clarify this with your local
# admin.
$ wget

# Set the environment variable to the filename.
$ export SALVUS_CA_BUNDLE_PATH=cacert.pem

# Salvus will now use this CA file.
$ ./salvus compute ...

No Internet Connection

Clarify with your Admin!

Please make sure this is acceptable at your local compute site by talking to your admin. This recipe will open a SOCKS5 proxy from the compute node to the internet which might violate the policy of some compute centers.


Compute nodes on high performance clusters oftentimes have no direct internet connection. A way to work around this issue on many machine is to offer a SOCKS5 proxy ( and tell Salvus to use it by setting the all_proxy environment variable:

$ export all_proxy=socks5://localhost:12345
$ ./salvus compute ...

In the common environment where the login nodes have internet access but the compute nodes do not, the compute nodes can oftentimes SSH to the login nodes to create a SOCKS proxy. The following recipe should get you started:

#  Make sure there is an ssh keypair on the machine. Agent forwarding will
#  not work on the compute nodes.
#  Make one for example with:
#  $ ssh-keygen -t rsa -b 4096 -C "[email protected]"
#  Also copy the key and make sure there is a setting in ~/.ssh/config!
#  $ ssh-copy-id LOGIN_NODE_HOST_NAME

export PORT=9123

# Socks proxy to log-in node.

# Store process id of ssh connection.
ps -x | grep "ssh -fNM -D $PORT $LOGIN_NODE_HOST_NAME" | \
    grep -v grep  | cut -d " " -f1 > pid.txt

# Use it.
export all_proxy=socks5://localhost:$PORT

# Launch some piece of Salvus.
python -c 'import salvus_mesh'

# Kill the ssh process again. Otherwise the job will run until it hits the wall
# time.
kill `cat pid.txt`