Contents
- Start by accurately identifying the artifact
- The recipient calculates the hash of the local copy
- Verify the separate signature with the correct key
- Platform signature has its own tools and meaning
- The publisher should also verify the publicly available copy
- Automation must maintain the link between metadata and content
- What to do in case of disagreement
- Frequently asked questions
Start by accurately identifying the artifact
The installation package must match the product, version, channel, system, and architecture. A similar name does not prove the same bytes. APK, AAB, DEB, DMG, EXE, and source ZIP have different purposes and checksums. So first determine what exactly you want to verify and then use it.
In CH-J distribution, checksums and separate signatures are used in addition to packages where they are published for a given artifact. Platform verification is an additional layer. It is not correct to claim that every signature format is interchangeable or that checking the source ZIP automatically verified the installation EXE. You need a link to a specific file.
The recipient calculates the hash of the local copy
# GNU nástroje na Linuxu:
sha512sum ./instalator.bin
# macOS:
shasum -a 512 ./instalator.binReplace the file in the example with the actual path. Compare the entire result with the correct published value and check the size. The command must not count another copy of the same name, an unpacked content instead of an archive, or a file on a remote server instead of a local download. The verified result belongs to the bytes just selected.
# Windows PowerShell:
Get-FileHash -Algorithm SHA512 -LiteralPath .\instalator.exeA match confirms integrity with respect to the expected value, not automatically the author. A checksum from the same spoofed page may be consistent with a malicious package. Therefore, assess the credibility of the reference independently and add signature verification or secure repository metadata depending on the distribution path.
Verify the separate signature with the correct key
gpg --verify instalator.bin.asc instalator.binThe example assumes an OpenPGP signature of the specified file and a trusted public identity of the publisher. Compare the entire fingerprint independently. A successful result with a newly downloaded unverified key does not yet prove the intended author. The recipient does not need the private part of the publisher for this operation.
If the publisher signs a checksum list, first verify the list signature and then the package hash against the correct line. Do not mix these steps. The SHA512SUMS signature does not belong directly to any installer, and the list verification itself has not yet read your local binary copy.
Platform signature has its own tools and meaning
On Windows, you can examine the Authenticode signature, for example, using Get-AuthenticodeSignature. On macOS, the application signature, Gatekeeper, and any notarization are included in the assessment. Android checks the corresponding package signature and the relationship to the update of an already installed application during installation. These mechanisms are not simply another extension for OpenPGP.
A valid platform signature does not mean that the program is bug-free or that it is the latest suitable version. A missing or problematic signature should also not be resolved by automatically disabling all system protections. First, confirm the official artifact, release status, and publisher guidelines. When updating, it is also important to follow the expected signing identity.
The publisher should also verify the publicly available copy
It is not enough to calculate the hash at build time if the distribution system subsequently uploads different bytes or offers an older default file. After publishing, verify the actual link, size, hash, and matching signature. For mirrors, check every node for the correct hostname and TLS, not just the existence of the file in the staging area.
In an earlier read check of CH-J on November 28, 2026, three active artifacts totaling 77,505,472 bytes were verified on the second node using SHA-512 and the associated source inventory. This particular result was not a full physical audit of the entire public tree of several gigabytes. The scope of the proof needs to be preserved even when citing it later.
Automation must maintain the link between metadata and content
The publication inventory should specify the expected files and their values in a particular revision. The recipient verifies the trusted inventory as well as the actual bytes. In case of a mismatch, it should not automatically recalculate the expected value from the corrupted copy and mark it as the new truth. This would defeat the purpose of integrity checking.
The update client should complete the validation before using the package and handle aborts, path reversals, and rollbacks. Don't assume that any HTTP 200 is a finished installer. The HTML error page can have the same filename and a good-looking length. Type and size checks help, but proper cryptographic and content bindings are crucial.
What to do in case of disagreement
Stop using the package and check the algorithm, version, architecture, and specific file first. Redownload from a trusted source if the download was incomplete. If there is a persistent mismatch, provide the publisher with public identifiers and diagnostics without secrets. Do not overwrite the expected checksum with your result just for the sake of a green check.
- The artifact and its expected version are precisely specified.
- The local hash matches the correct trusted reference.
- The published signature was verified using the appropriate method.
- Platform status and timeliness are assessed separately.
- The currently verified copy is being used.
Distribution integrity is created by the collaboration of the publisher and the recipient. The publisher must publish correctly linked artifacts, the recipient must verify them in their real environment. A single successful layer is useful, but should not be used to control all other steps.
Frequently asked questions
Does the installer also verify the source ZIP hash?
No. Each artifact has its own bytes and expected values.
Is Authenticode the same as OpenPGP signature?
No. These are different formats and verification mechanisms.
What to do if the checksum does not match?
Do not use the package until you have clarified the correct artifact, reference, and completeness of the transfer.
Detailed documentation
Debian: verifying distributed images →
Microsoft: Authenticode check →
Apple: Gatekeeper and Runtime Protection →