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

  • Home
  • SEARCH
  • 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 7591743
In Process

The Archive Base Latest Questions

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

I am running next command within a crontab to encrypt a file and I

  • 0

I am running next command within a crontab to encrypt a file and I don’t want a keyboard interaction

echo "PASSPHRASE" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT

but I have this answer:

gpg: C042XXXX: There is no assurance this key belongs to the named user

pub  40XXX/C042XXXX 2012-01-11 Name LastName. (comment) <user@email.com>
 Primary key fingerprint: XXXX XXXX XXXX XXXX XXXX  XXXX XXXX XXXX XXXX XXXX
      Subkey fingerprint: XXXX XXXX XXXX XXXX XXXX  XXXX XXXX XXXX XXXX XXXX

It is NOT certain that the key belongs to the person named
in the user ID.  If you *really* know what you are doing,
you may answer the next question with yes.

Use this key anyway? (y/N) 
  • 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-30T20:43:38+00:00Added an answer on May 30, 2026 at 8:43 pm

    As David intimated, the problem here is that gpg doesn’t trust the public key you’re using to encrypt. You could sign the key as he explained.

    An alternative–especially if the key might be changing occasionally–would be to tack on --trust-model always to your gpg command.

    Here’s the relevant bit from the man page:

    --trust-model pgp|classic|direct|always|auto
    
         Set what trust model GnuPG should follow. The models are:
    
         pgp    This is the Web of Trust combined with trust signatures as used in
                PGP 5.x and later. This is the default trust model when creating a
                new trust database.
    
         classic
                This is the standard Web of Trust as used in PGP 2.x and earlier.
    
         direct Key validity is set directly by the user and  not  calculated  via
                the Web of Trust.
    
         always Skip  key  validation  and  assume that used keys are always fully
                trusted. You generally won't use this unless you  are  using  some
                external  validation  scheme.  This  option  also  suppresses  the
                "[uncertain]" tag printed with signature checks when there  is  no
                evidence that the user ID is bound to the key.
    
         auto   Select  the  trust  model depending on whatever the internal trust
                database says. This is  the  default  model  if  such  a  database
                already exists.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Often I want to get a nice readout what process are running and their
My currently running activity B should be destroyed using 'finishActivity(999)'. Doing so, I want
I am running the following command through shell_exec but I'm getting the following Warning.
I am going through a big list of files and running a command on
I'm running a number of SQL command using the dot net provider for Firebird
running the cmd command schtasks /query /fo LIST Gives me a list of all
I am running the command ls *my_file.txt* | xargs vim The shell throws a
I am running a java program from within a Bash script. If the java
Running a rails site right now using SQLite3. About once every 500 requests or
running git instaweb in my repository opens a page that says 403 Forbidden -

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.