How to Verify a GPG Signature: 5 Steps (with Pictures) - wikiHow (2024)

  • Categories
  • Computers and Electronics
  • Software

Download Article

A step-by-step guide that helps you figure out if the GPG signature is verified

Explore this Article

parts

1Downloading What You Need

2Using GPG to Verify that someone's Secret Key Signed the File in Question

Other Sections

Things You'll Need

Related Articles

Author Info

Last Updated: August 28, 2023

Download Article

This wikiHow guide details a clear 1-minute process to verify that a file in your possession was digitally signed by a particular GPG Secret Key and has been unmodified since the time of signing.

Part 1

Part 1 of 2:

Downloading What You Need

Download Article

To verify your belief that someone has signed a file, you will need a copy of that person's Public Key, a copy of the file, and a copy of the signature-file that was allegedly created through the interaction of the person's Secret Key and the file.

  1. 1

    Acquire the Public Key.

    • Import the Public Key into GPG.
  2. 2

    Advertisem*nt

  3. 3

    Acquire a copy of the signature-file in question.

    • Save it in the same Folder.
  4. Advertisem*nt

Part 2

Part 2 of 2:

Using GPG to Verify that someone's Secret Key Signed the File in Question

Download Article

GPG will help you verify the relationship between your three files.

  1. 1

    Open a command-line interface.

    • Change the working directory to the Folder where your file and signature-file are saved.
  2. 2

    Verify the signature.

    • Type the following command into a command-line interface:
    • gpg --verify [signature-file] [file]
    • E.g., if you have acquired
    • (1) the Public Key 0x416F061063FEE659,
    • (2) the Tor Browser Bundle file (tor-browser.tar.gz), and
    • (3) the signature-file posted alongside the Tor Browser Bundle file (tor-browser.tar.gz.asc),
    • You would type the following:
    • gpg --verify tor-browser.tar.gz.asc tor-browser.tar.gz
  3. Advertisem*nt

Community Q&A

Search

Add New Question

  • Question

    This guide shows how it's done on Windows, how is this done on Linux and macOS? In the same way or is it different?

    How to Verify a GPG Signature: 5 Steps (with Pictures) - wikiHow (10)

    Radj307

    Community Answer

    The method is identical for all platform-specific implementations of the GPG utility.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 3Helpful 3

  • Question

    'GPG' is not recognized as an internal or external command, operable program or batch file. What is wrong?

    How to Verify a GPG Signature: 5 Steps (with Pictures) - wikiHow (11)

    Radj307

    Community Answer

    You will need GPG installed to be able to use the GPG command. On Windows, you can use GPG4Win.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 1Helpful 3

  • Question

    How can I acquire the Public Key in Part 1 for the file targeted for download?

    How to Verify a GPG Signature: 5 Steps (with Pictures) - wikiHow (12)

    Radj307

    Community Answer

    The distributor of the file likely has their PGP public key somewhere on their website.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 1Helpful 2

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      Warning

      • Although you are now certain the Secret Key bound to the Public Key you possess was used to sign the file, you must still take precautions to ensure that this Public Key actually belongs to the person you believe it belongs to. Nothing prevents an adversary from making keys that appear to belong to someone.
      • If you have not imported someone's Public Key to your GPG Keyring, this procedure does not work.
      • The person may name the signature-file anything they want: the names of the file and the signature-file do not need to be similar or related.

      Things You'll Need

      • GPG Encryption Engine
      • Signed file
      • Signature-file
      • GPG Public Key

      You Might Also Like

      How toPlay MinesweeperHow toOpen EPUB Files
      Using Rufus to Create Bootable USB Drives: A Step-By-Step GuideHow to Add the Google Play Store to an Amazon Fire TabletThe Best AI Writing Tools to Help Create Great Short- or Long-Form ContentA Step-by-Step Guide to Compare Two Excel FilesHow to Change the Hostname on Linux Without Rebooting2 Simple Ways to Create an RSS FeedHow toSave an Animation in BlenderHow toMake an Exe FileHow toAdd a Password to a RAR FileHow toEdit DLL FilesWhy Is Your Child's Screen Time Not Showing? Troubleshooting Apple Family SharingHow to Contact Spotify: Step-by-Step Guide for Quick Support

      Advertisem*nt

      About This Article

      wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 191,399 times.

      How helpful is this?

      Co-authors: 6

      Updated: August 28, 2023

      Views:191,399

      Categories: Software

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 191,399 times.

      Is this article up to date?

      Advertisem*nt

      How to Verify a GPG Signature: 5 Steps (with Pictures) - wikiHow (2024)

      FAQs

      How do I verify a signature file in GPG? ›

      To verify your belief that someone has signed a file, you will need a copy of that person's Public Key, a copy of the file, and a copy of the signature-file that was allegedly created through the interaction of the person's Secret Key and the file. Acquire the Public Key. Import the Public Key into GPG.

      How to verify GPG signature mac? ›

      To verify the signature:
      1. download GPG Suite.
      2. if GPG Suite is already installed on your system skip this step, as our public key comes pre-installed with GPG Keychain. ...
      3. both dmg and sig file must be located in the same folder.
      4. double-click the signature file and GPG Services will show the verification result.
      Dec 13, 2021

      How to verify .sig file? ›

      Follow these additional steps to verify the signature file:
      1. Copy the following contents for the informix. ...
      2. Encrypt the .sig file (SIGNATUREFILENAME) into a new filename: (cat {SIGNATUREFILENAME} ; echo '') | openssl enc -d -base64 -out fixed.sig.

      How is a signature verified? ›

      Signature verification works by comparing a signature on a document with a reference signature. This comparison is done using advanced algorithms and pattern recognition techniques.

      How do I verify my signature on PKI? ›

      To verify the authenticity of the digital signature, the recipient uses the signer's public key, which is accessible to everyone. The recipient decrypts the digital signature using the public key and compares the resulting hash value with a newly generated hash value from the received digital data.

      How do I digitally verify my signature? ›

      5 Steps for Validating Digital Signatures In a PDF
      1. Open the digitally signed PDF that you need to validate using Power PDF.
      2. Locate the digital signature object within the document.
      3. Right click or command-click on the signature object.
      4. Select "Verify Signature" from the context menu.

      How does a GPG signature work? ›

      If you sign a file using your personal secret key, anyone can verify that this file has not been modified (i.e. the hash matches the one in your signature) via your public key. GPG signatures are widely used by Linux package managers such as apt to verify the integrity of downloaded files.

      How do I verify an encrypted digital signature? ›

      To verify digital signatures and encryption, click on the indicator or icon next to the sender's name or address to check the details of the key or certificate, such as the issuer, expiration date, fingerprint, and trust level.

      How do I verify my signature on Mac? ›

      In the Mail app on your Mac, click the Signature pop-up menu in the message you're writing. Choose a signature. If an expected signature isn't in the Signature pop-up menu, or the menu isn't showing, choose Mail > Settings, click Signatures, then verify the signature has been added to the correct email account.

      How to verify GPG signature ISO? ›

      To verify an ISO file using GPG signature, you need to download the GPG signature file from the developer's website. The GPG signature file will contain the developer's public key and the signature of the ISO file.

      How do I get my GPG key signed? ›

      Associate your GPG key with Git
      1. Run this command to list the private GPG key you just created, replacing <EMAIL> with the email address for your key: ...
      2. Copy the GPG private key ID that starts with sec . ...
      3. Run this command to configure Git to sign your commits with your key, replacing <KEY ID> with your GPG key ID:

      How to check if a file has a signature? ›

      Open the file that contains the certificate you want to view. Click File > Info > View Signatures. In the list, on a signature name, click the down-arrow, and then click Signature Details.

      How do I verify file integrity in GPG? ›

      Since 2021 the signatures are created by one of the official GnuPG release keys (aka certificates) they can be obtained from the GnuPG Homepage or downloaded from public keyservers. Checking the signature is best done via the File Explorer: Right click on the file and use GpgEX options -> verify.

      How do you verify a container image signature? ›

      Signature verification: The public verification

      Verification is the public spectacle where the public key is used to confirm the signature's validity, ensuring the integrity and origin of the container image.

      How do I verify a signature is validated? ›

      5 Steps for Validating Digital Signatures In a PDF
      1. Open the digitally signed PDF that you need to validate using Power PDF.
      2. Locate the digital signature object within the document.
      3. Right click or command-click on the signature object.
      4. Select "Verify Signature" from the context menu.

      How do I verify my hash signature? ›

      Anyone who receives your data can verify your digital signature by decrypting it with your public key, which you share with them, and comparing it with the hash of your data. If the hashes match, it means that the data came from you and has not been modified.

      How do I identify a file signature? ›

      A file signature is a unique sequence of identifying bytes written to a file's header. On a Windows system, a file signature is normally contained within the first 20 bytes of the file. Different file types have different file signatures; for example, a Windows Bitmap image file (.

      Top Articles
      Latest Posts
      Article information

      Author: Golda Nolan II

      Last Updated:

      Views: 5915

      Rating: 4.8 / 5 (78 voted)

      Reviews: 93% of readers found this page helpful

      Author information

      Name: Golda Nolan II

      Birthday: 1998-05-14

      Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

      Phone: +522993866487

      Job: Sales Executive

      Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

      Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.