Solved

Problems with PGP on the command line

Posted on 2001-08-06
4
591 Views
Last Modified: 2008-03-04
I don't know is this is the correct place to ask this, I can't find anything more PGP related...

When I type the following into the command prompt in windows2000 (PGP 6.5) "pgp -a -e -t plaintext.txt justin@mydomain.co.uk" I get the plaintext output as ciphertext in a file called "plaintext.txt.asc".  As required.

If however I use "pgp -a -e -t +batchmode plaintext.txt justin@mydomain.co.uk" I get a message saying "Encryption error" and no encrypted file is created.

I need to use PGP on a remote web server and therefore I need to use the +batchmode to suppress questions.

What am I doing wrong?

Justin
0
Comment
Question by:jtp101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Expert Comment

by:GUEEN
ID: 6355349
0
 

Author Comment

by:jtp101
ID: 6458965
6.58 has exactly the same problem.  Thanks anyway.

Justin
0
 
LVL 16

Accepted Solution

by:
GUEEN earned 50 total points
ID: 6458988
That is because in batch mode PGP refuses to use an uncertified key and will abort with an encryption error.
Which means if you try to encrypt to a key you haven't signed or certified, PGP will try to
ask you for verification -- and you can't do that in batch mode. Be sure the key is signed/certified - then try.
0
 
LVL 6

Expert Comment

by:Triskelion
ID: 6462316
I just tried it on Win2K with PGP 6.5.8 (command-line) and it worked fine.  The only things I did differently were to put the options all in one parameter and to capitalize batchmode, but it worked the other way, too.
Here is the output:

C:\science\PGP>pgp -eat +BATCHMODE plaintext.txt thines01@yahoo.com
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.



Recipients' public key(s) will be used to encrypt.

Key for user ID: Tom Hines <THines01@Yahoo.COM>
2048-bit RSA key, Key ID 0x706078C7, created 2001/09/06
Key can sign.

Transport armor file: plaintext.txt.asc

C:\science\PGP>
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question