Solved

Problems with PGP on the command line

Posted on 2001-08-06
4
585 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrate DHCP from server 2000 to 2008 1 640
Windows WEb Server sp2 13 524
Locking down a taskpad 1 178
Promote Server 2012 R2 on Server 2003 domain 13 23
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…
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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