Skip to content

Verify a download

Every release publishes a SHA256SUMS file next to the binaries and the Mac disk image. Checking a download against it proves the file was not corrupted or swapped between the build and your disk.

In the folder you downloaded to, with the file name you downloaded:

On macOS:

Terminal window
curl -fsSL https://downloads.naelox.com/naelox/latest/SHA256SUMS \
| grep ' Naelox-Server.dmg$' | shasum -a 256 -c

On Linux:

Terminal window
curl -fsSL https://downloads.naelox.com/naelox/latest/SHA256SUMS \
| grep ' naelox_linux_amd64$' | sha256sum -c

It prints Naelox-Server.dmg: OK when the file matches. Anything else, including no output, means it does not; delete the file and download again.

The download page shows the same command, filled in, under Verify this download for the file you chose.

The download page prints each file’s SHA-256 with a copy button. Compare it with:

Terminal window
shasum -a 256 Naelox-Server.dmg # macOS
sha256sum naelox_linux_amd64 # Linux

A signed release also has SHA256SUMS.minisig next to SHA256SUMS, and the download page links it. The signature proves the list of sums came from the Naelox release workflow, so a matching sum then proves the file did too. With minisign installed (brew install minisign, apt install minisign):

Terminal window
curl -fsSLO https://naelox.com/naelox-release.pub
curl -fsSLO https://downloads.naelox.com/naelox/latest/SHA256SUMS
curl -fsSLO https://downloads.naelox.com/naelox/latest/SHA256SUMS.minisig
minisign -Vm SHA256SUMS -p naelox-release.pub

It prints Signature and comment signature verified and a trusted comment naming the release, such as naelox 1.2.0. Then check the file against the verified list as above.

The public key comes from naelox.com, not from the download host, so whoever could change the files there still could not change the key. It is key 6B07926F67F20607, and naelox-release.pub should contain exactly:

untrusted comment: minisign public key 6B07926F67F20607
RWQHBvJnb5IHa3eqLcwAx2W05GHjfwxj3MGbFabhQVZllp/afYnUedI8

A matching sum proves the file is byte-for-byte what the release lists. On its own it does not prove who made the release; the signature above does, and the builds come from a tagged commit through the release workflow, which the download page links to.

On a Mac there is a second check. The app, the disk image and the command-line binaries are signed with Naelox’s Apple Developer ID and notarized by Apple, and macOS checks both before it opens them. To see it yourself:

Terminal window
spctl --assess --type open --context context:primary-signature -v Naelox-Server.dmg
spctl --assess --type execute -v "/Applications/Naelox Server.app"

Each prints accepted and source=Notarized Developer ID.