Verify a download
Every DataKlin download has a detached signature: a small .asc file next to it, made with the DataKlin release key. Checking it proves the file comes from DataKlin and wasn’t changed on the way. Signatures start with the 1.0 releases. DataKlin 0.5.1 and earlier are not signed: check those with their SHA-256 checksums only.
The release key
Section titled “The release key”The key is at https://dataklin.com/keys/dataklin-release.asc. Its primary key fingerprint is:
900D 3606 BF0F 1A46 AD67 3E96 67CC 1911 46B5 956BFiles are signed with its signing subkey, B114 28B2 DF2D 635F 95B7 E8BE 336C 8946 7E38 2F20. Always compare the primary fingerprint above: a key with any other fingerprint is not the DataKlin key, whatever its name says.
Before you start, download the file you want from the download section, and its signature link next to it, into the same folder. Then open a terminal in that folder.
Most distributions include GnuPG (gpg). If yours doesn’t, install the gnupg package.
curl -fsSLO https://dataklin.com/keys/dataklin-release.ascgpg --show-keys dataklin-release.ascgpg --import dataklin-release.ascgpg --verify DataKlin-1.1.0-linux-amd64.deb.asc DataKlin-1.1.0-linux-amd64.debgpg --show-keys prints the fingerprint: check it before you import the key. For the AppImage, use DataKlin-1.1.0-linux-x86_64.AppImage and its .asc in the last line.
Install GnuPG first, for example with Homebrew (brew install gnupg) or GPG Suite.
curl -fsSLO https://dataklin.com/keys/dataklin-release.ascgpg --show-keys dataklin-release.ascgpg --import dataklin-release.ascgpg --verify DataKlin-1.1.0-mac-arm64.dmg.asc DataKlin-1.1.0-mac-arm64.dmgWindows (PowerShell)
Section titled “Windows (PowerShell)”Install Gpg4win, which adds gpg to PowerShell, then open a new PowerShell window in the folder with the download.
Invoke-WebRequest https://dataklin.com/keys/dataklin-release.asc -OutFile dataklin-release.ascgpg --show-keys dataklin-release.ascgpg --import dataklin-release.ascgpg --verify DataKlin-1.1.0-win-x64.exe.asc DataKlin-1.1.0-win-x64.exe(Get-FileHash DataKlin-1.1.0-win-x64.exe -Algorithm SHA256).Hash.ToLower()Select-String DataKlin-1.1.0-win-x64.exe SHA256SUMSThe last two lines print the file’s SHA-256 and its line in SHA256SUMS (download that too, with its signature): the two must match.
What a good result looks like
Section titled “What a good result looks like”A good signature looks like this:
gpg: Good signature from "DataKlin Release Signing <security@dataklin.com>" [unknown]gpg: WARNING: This key is not certified with a trusted signature!gpg: There is no indication that the signature belongs to the owner.Primary key fingerprint: 900D 3606 BF0F 1A46 AD67 3E96 67CC 1911 46B5 956B Subkey fingerprint: B114 28B2 DF2D 635F 95B7 E8BE 336C 8946 7E38 2F20Good signatureand the primary key fingerprint above are what matter.- The warning that the key is not certified with a trusted signature is expected: it means you haven’t signed the key yourself. Comparing the fingerprint is that check.
BAD signaturemeans the file is not what DataKlin published. Don’t open it: delete it and download it again.No public keyorCan't check signaturemeans the key isn’t imported, or the file was signed with another key.
Checking SHA256SUMS
Section titled “Checking SHA256SUMS”SHA256SUMS lists the SHA-256 of every file in the release, and it is signed too. Download it and SHA256SUMS.asc from the download section, verify the signature, then check the files you downloaded against it:
gpg --verify SHA256SUMS.asc SHA256SUMS# Linuxsha256sum --check --ignore-missing SHA256SUMS# macOSshasum -a 256 --check --ignore-missing SHA256SUMSEach file you have prints OK. On Windows, compare the hash as in the PowerShell steps above.