Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.17 KB

VERIFY_SSH_SIGNATURES.md

File metadata and controls

27 lines (17 loc) · 1.17 KB

Verifying SSH signatures

Most of my projects use SSH signatures for digitally signing the downloads.

To verify the signature of a file, run the two commands listed below. This will first save the trusted key to a file named pixincreate_trusted_keys and then use it to verify the signature. Make sure to replace <filename> with the actual filename.

For Unix-like systems and Windows (Command Prompt):

echo pixincreate ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJRHOZvqFEFUG9QRAWSzx/ZXyychLv1kFa98A3tfmUPm > pixincreate_trusted_keys

ssh-keygen -Y verify -f pixincreate_trusted_keys -I pixincreate -n file -s <filename>.sig < <filename>

For Windows (PowerShell):

echo 'pixincreate ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJRHOZvqFEFUG9QRAWSzx/ZXyychLv1kFa98A3tfmUPm' | Out-File -Encoding ascii chenxiaolong_trusted_keys

Start-Process -Wait -NoNewWindow -RedirectStandardInput <filename> ssh-keygen -ArgumentList "-Y verify -f pixincreate_trusted_keys -I pixincreate -n file -s <filename>.sig"

If the file is successfully verified, the output will be:

Good "file" signature for pixincreate with ED25519 key SHA256:rKaVHM3dICSjBol+fUISkSXnBSsgLrexJbNeTcDY2+0