Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:43:36+00:00 2026-05-28T20:43:36+00:00

How do i verify a gpg signature (cli or w/ node js) without installing

  • 0

How do i verify a gpg signature (cli or w/ node js) without installing the public key? i do have the public key but don’t want to add it to the keyring. Any hints?

Thanks,
Florian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:43:38+00:00Added an answer on May 28, 2026 at 8:43 pm

    Here’s a shell script I use for just that purpose. It creates a temporary keyring, installed the specified public key in it, runs the specified command, then deletes the temporary keyring.

    Note that this installs the key from a keyserver. It shouldn’t be hard to tweak it to use a key you already have on disk (and I should add an option to do just that).

    Update: See https://github.com/Keith-S-Thompson/gpg-tmp

    #!/bin/sh
    
    keyid=$1
    shift
    case "$keyid" in
        ????????)
            ;;
        *)
            echo "Usage: $0 key args..." 1>&2
            exit 1
    esac
    
    tmp_keyring=$HOME/$keyid-keyring.gpg
    
    gpg --no-default-keyring --keyring $tmp_keyring --recv-keys $keyid
    gpg --no-default-keyring --keyring $tmp_keyring "$@"
    rm -f $tmp_keyring
    

    It acts like the gpg command, but takes an extra initial argument specifying the 8-digit key id.

    Sample usage:

    $ gpg coreutils-8.9.tar.gz.sig
    gpg: Signature made Tue 04 Jan 2011 07:04:25 AM PST using RSA key ID 000BEEEE
    gpg: Can't check signature: public key not found
    $ gpg-tmp 000BEEEE coreutils-8.9.tar.gz.sig
    gpg: keyring `/home/kst/000BEEEE-keyring.gpg' created
    gpg: requesting key 000BEEEE from hkp server subkeys.pgp.net
    gpg: key 000BEEEE: public key "Jim Meyering <jim@meyering.net>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)
    gpg: Signature made Tue 04 Jan 2011 07:04:25 AM PST using RSA key ID 000BEEEE
    gpg: Good signature from "Jim Meyering <jim@meyering.net>"
    gpg:                 aka "Jim Meyering <meyering@gnu.org>"
    gpg:                 aka "Jim Meyering <meyering@redhat.com>"
    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: 155D 3FC5 00C8 3448 6D1E  EA67 7FD9 FCCB 000B EEEE
    

    Keep in mind that this tells you absolutely nothing about the trustworthiness of the key, but it’s useful as an integrity check.

    (I wonder how many keys Jim Meyering generated before he got that one.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to verify the signature on a file that may be as large
I want to programmatically verify the status of an application to see if it
I want to verify if a computer is running .net 3.5 or 3.5 sp1,
I am trying to verify an OAuth signature generated in code against a known
Just want to verify, when making a SSL connection (http post) to say: https://www.example.com/some/path?customer_key=123123123
i need to verify that my text box should contain only- numbers,-,/,. i have
I want to verify the type of the uploaded file, that's how I do
I want to verify that the items in my ListBox are displayed correctly in
I want to verify that my custom-made error pages return the correct HTTP status
I want to verify the file name with the specified format(YYYYMMDDHHmmRate).for eg , if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.