Sponsored Content
Full Discussion: GPG Encription problem
Top Forums Shell Programming and Scripting GPG Encription problem Post 302331687 by pludi on Tuesday 7th of July 2009 02:27:12 AM
Old 07-07-2009
From the man page (which you have of course read) some options that might be helpful:
Code:
       --batch
       --no-batch
              Use batch mode.  Never ask, do not allow  interactive  commands.
              --no-batch disables this option.

       --no-tty
              Make  sure that the TTY (terminal) is never used for any output.
              This option is needed in  some  cases  because  GnuPG  sometimes
              prints warnings to the TTY even if --batch is used.

       --passphrase-fd n
              Read the passphrase from file descriptor n. Only the first  line
              will  be  read  from  file descriptor n. If you use 0 for n, the
              passphrase will be read from stdin. This can  only  be  used  if
              only  one  passphrase is supplied.  Note that this passphrase is
              only used if the option --batch has also been  given.   This  is
              different from gpg.


       --passphrase-file file
              Read  the passphrase from file file. Only the first line will be
              read from  file  file.  This  can  only  be  used  if  only  one
              passphrase is supplied. Obviously, a passphrase stored in a file
              is of questionable security if other users can read  this  file.
              Don't  use  this  option  if  you  can avoid it.  Note that this
              passphrase is only used if the  option  --batch  has  also  been
              given.  This is different from gpg.


       --passphrase string
              Use  string as the passphrase. This can only be used if only one
              passphrase is supplied. Obviously, this is of very  questionable
              security  on  a  multi-user system. Don't use this option if you
              can avoid it.  Note that this passphrase is  only  used  if  the
              option --batch has also been given.  This is different from gpg.

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GnuPG (gpg command)

I've been blessed with the task of writing functions that will be used to encrypt / decrypt data files using the Gnupg (gpg command) software on our Solaris 9. This was just installed last friday and I've got no documentation other than what I've found on the web. I was successful in writing... (4 Replies)
Discussion started by: BCarlson
4 Replies

2. UNIX for Dummies Questions & Answers

Gpg

Hi, I have imported the details given by my friend using gpg --import <file> Now i am using the encryption technique with my friend's key in the following way: gpg --output out.pgp --batch --encrypt --recipient "FRIEND_KEY" test and i am getting the follwoing error: gpg: 421E287E:... (4 Replies)
Discussion started by: risshanth
4 Replies

3. UNIX for Dummies Questions & Answers

How to use GPG for myself on Thumb drive?

I have some sensitive data I would like to keep on a thumb drive. Now I know this is a UNIX/Linux forum and I regret to say that I'm using windows but I'm hoping that is irrelevant. So I install gpg on both windows machines: one at home and the other at work. I encrypt some stuff on the... (2 Replies)
Discussion started by: siegfried
2 Replies

4. Linux

GPG error on Debian 4 using apt-get

Hello, I wish to update a debian 4.0 server we have but cannot get past the following error message. my keys are as follows: Any help would be good. (0 Replies)
Discussion started by: pobman
0 Replies

5. Shell Programming and Scripting

Cannot see GPG installation

Hello all I have installed gpg key be executing command gpg --gen-key and followed the on screen prompts. I have done all this stuff from my home directory Now i am unable to see the results. Where are these keys stored. Doesn't it create a new folder in my home directory and create the... (1 Reply)
Discussion started by: vasuarjula
1 Replies

6. Shell Programming and Scripting

Need help on File Encryption using gpg

Folks, Is there anyone to help on GPG file encryptions here. I got a public key from third party. I imported the key in server. I want to encrypt the public key. But without being signed , the key cannot be encrypted. When I try to sign the key using lsign command, I am getting the below... (1 Reply)
Discussion started by: dinesh1985
1 Replies

7. UNIX and Linux Applications

Using gpg

I am trying to use gig in linux but it is hanging. $ gpg --passphrase=test /tmp/test.sh Reading passphrase from file descriptor 0 ... When i press enter, it gives the below message: $ gpg --passphrase=test /tmp/test.sh Reading passphrase from file descriptor 0 ... gpg: no valid... (1 Reply)
Discussion started by: tcssk
1 Replies

8. Shell Programming and Scripting

To pass the variable in gpg

Hi, While m using gpg manually it works fine. I want to include this command in my auto script. how to pass the passphrase and Use this key anyway? (y/N) in my script. Advance thanks. $ gpg --sign --output xx.gpg --encrypt --recipient GXS_CTE xx.ext You need a passphrase to unlock the secret... (3 Replies)
Discussion started by: chakkaravarthy
3 Replies

9. Shell Programming and Scripting

GPG email attachment

Hi, Can we send gpg encrypted file as an email attachment using uuencode in linux??if so can you give me the code.. Regards, Sandeep. (1 Reply)
Discussion started by: sandeep karna
1 Replies

10. UNIX for Advanced & Expert Users

GPG encryption error ...

Hi. I'm hitting issues using gpg to encrypt a text file on Linux. gpg -c --passphrase 123 --cipher-algo AES256 test gpg: cancelled by user gpg: error creating passphrase: Operation cancelled gpg: symmetric encryption of `test' failed: Operation cancelled In this case the file test just... (3 Replies)
Discussion started by: user052009
3 Replies
pktool(1)							   User Commands							 pktool(1)

NAME
pktool - manage softtoken object storage SYNOPSIS
pktool setpin DESCRIPTION
The pktool command allows users to manage the softtoken object store. The setpin subcommand changes the passphrase used to authenticate a user to the softtoken object store. setpin prompts the user for the old passphrase, if any. If the old passphrase matches, pktool prompts for the new passphrase twice. If the two entries of the new passphrase match, it will become the current passphrase for the token. Passphrases may be any string of characters with lengths between 1 and 256 with no nulls. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
${HOME}/.sunw/pkcs11_softtoken The user's default token object store. ${SOFTTOKEN_DIR}/pkcs11_softtoken The alternate token object store. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), pkcs11_softtoken(5) RSA PKCS#11 v2.11 http://www.rsasecurity.com/rsalabs/pkcs/pkcs-11 SunOS 5.10 1 Mar 2004 pktool(1)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy