Discussion:
Need Help on PGP decryption
Upendra Adarkar
2013-12-27 21:03:47 UTC
Permalink
Hi Guru

I am using PGP Version 6.5.8 on Solaris 10 (SPARC) . i facing one problem and got totally confused. 
my system is generating one text file which is having some important data. this file we do encrypt and send to another institute. where they decrypt and process. 

to encrypt file i am using following command 

pgp +force -es Fin-info.txt <Her-User-ID> -u <My-user-ID> 

once we encrypt and send to other party. they could decrypt it but problem is now at our end. 

problem: now i try to decrypt but it throws error given below 

--- Error ---
File is encrypted.  Secret key is required to read it.
You do not have the secret key needed to decrypt this file  

--End--

Gurus would you please make me clear, which key is missing and PGP program required to decrypt.  
<Her-User-ID> or <My-user-ID>?


if i give pgp -kv i can see both keys in the PGP database 

output of pgp -kv

Her-Key> RSA  2048/2048 0xDC667000 2013/04/11 expires 2015/05/31 <Her-userid>

My Key> RSA  2048      0xFE9CBEC7 2013/08/13 expires 2015/08/13 <My user id>


requesting you please guide me
Regards
Upendra
Michael Daigle
2013-12-28 00:30:44 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Post by Upendra Adarkar
I am using PGP Version 6.5.8 on Solaris 10 (SPARC) . i facing one
problem and got totally confused. my system is generating one text
file which is having some important data. this file we do encrypt
and send to another institute. where they decrypt and process.
to encrypt file i am using following command
pgp +force -es Fin-info.txt <Her-User-ID> -u <My-user-ID>
once we encrypt and send to other party. they could decrypt it but
problem is now at our end.
problem: now i try to decrypt but it throws error given below
--- Error --- File is encrypted. Secret key is required to read
it. You do not have the secret key needed to decrypt this file
This should be easy to solve. It appears you do not have a private key
corresponding to a public key used for encryption. You need to encrypt
to your own public key ("<My-user-ID>") as well as the external recipient.

pgp +force -es Fin-info.txt <Her-User-ID> <My-user-ID> -u <My-user-ID>


- --
Mike Daigle http://www.mikedaigle.ca


-----BEGIN PGP SIGNATURE-----
Comment: Mike Daigle Ontario, Canada www.mikedaigle.ca

iHEEAREDADEFAlK+G68qGGh0dHA6Ly9saW5rcy5taWtlZGFpZ2xlLmNhL01pa2VE
YWlnbGUuYXNjAAoJEE7x4eArFU5i3lYAn04pI9VA6WJnVxXl/DEmuJ36YQXZAJ40
w6WzDMnyTukFZOat8sk8Hi8phA==
=eQOY
-----END PGP SIGNATURE-----


------------------------------------

______________________________________________________________
Archives: http://groups.yahoo.com/group/PGP-Basics/messages
OT List: http://groups.yahoo.com/group/PGP-Basics-OT
OT Subscribe: mailto:PGP-Basics-OT-***@yahoogroups.com
Gossamer Spider Web of Trust http://www.gswot.org

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/PGP-Basics/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/PGP-Basics/join
(Yahoo! ID required)

<*> To change settings via email:
PGP-Basics-***@yahoogroups.com
PGP-Basics-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
PGP-Basics-***@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/
Upendra Adarkar
2013-12-30 15:10:04 UTC
Permalink
Hi Mike 
thanks a lot it is working for new files but now i have two questions 
1. how i can decrypt my old files?
2. if i changed my existing command to given by your command will my customer able to decrypt files without doing any changes at his level?

Regards
Upendra

  



On Friday, 27 December 2013 4:03 PM, Upendra Adarkar <***@yahoo.com> wrote:

 
Hi Guru

I am using PGP Version 6.5.8 on Solaris 10 (SPARC) . i facing one problem and got totally confused. 
my system is generating one text file which is having some important data. this file we do encrypt and send to another institute. where they decrypt and process. 

to encrypt file i am using following command 

pgp +force -es Fin-info.txt <Her-User-ID> -u <My-user-ID> 

once we encrypt and send to other party. they could decrypt it but problem is now at our end. 

problem: now i try to decrypt but it throws error given below 

--- Error ---
File is encrypted.  Secret key is required to read it.
You do not have the secret key needed to decrypt this file  

--End--

Gurus would you please make me clear, which key is missing and PGP program required to decrypt.  
<Her-User-ID> or <My-user-ID>?


if i give pgp -kv i can see both keys in the PGP database 

output of pgp -kv

Her-Key> RSA  2048/2048 0xDC667000 2013/04/11 expires 2015/05/31 <Her-userid>

My Key> RSA  2048      0xFE9CBEC7 2013/08/13 expires 2015/08/13 <My user id>


requesting you please guide me
Regards
Upendra
Michael Daigle
2013-12-30 15:56:56 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hi Mike thanks a lot it is working for new files but now i have two
questions
1. how i can decrypt my old files?
You can't. Your initial post indicated only the recipient's public key
was used for encryption and so only the recipient's private key can be
used to decrypt.
2. if i changed my existing command to given by your command will
my customer able to decrypt files without doing any changes at his
level?
As long as the file is encrypted to the recipient's public key the
recipient will have no problem decrypting the file regardless of any
additional keys having been used for encryption. The recipient only
requires access to a private key corresponding to a public key used
for encryption.

The importance of the popular option to "encrypt to self" cannot be
understated. If a message or file is encrypted, only the corresponding
private key(s) can be used to decrypt. When I encrypt, my options are
such that the message or file is encrypted to the recipient and also
to my own public key and additionally to a non-published public key of
mine that exists solely to ensure I can decrypt anything I have ever
encrypted. The PGP application supports this concept through the
generation of ADK's (Additional Decryption Key). You can, however,
imitate this feature by simply adding your personal and/or other
specific public keys to the list of recipients when encrypting.



- --
Mike Daigle http://www.mikedaigle.ca



- --
Mike Daigle http://www.mikedaigle.ca


-----BEGIN PGP SIGNATURE-----
Comment: Mike Daigle Ontario, Canada www.mikedaigle.ca

iHEEAREDADEFAlLBl8UqGGh0dHA6Ly9saW5rcy5taWtlZGFpZ2xlLmNhL01pa2VE
YWlnbGUuYXNjAAoJEE7x4eArFU5ibykAniLoKcEzEUZaONOBcn4wTMJe7ibfAKC/
OH7oPiTFbZK+IVNJ3zGIBGvZiA==
=mARo
-----END PGP SIGNATURE-----


------------------------------------

______________________________________________________________
Archives: http://groups.yahoo.com/group/PGP-Basics/messages
OT List: http://groups.yahoo.com/group/PGP-Basics-OT
OT Subscribe: mailto:PGP-Basics-OT-***@yahoogroups.com
Gossamer Spider Web of Trust http://www.gswot.org

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/PGP-Basics/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/PGP-Basics/join
(Yahoo! ID required)

<*> To change settings via email:
PGP-Basics-***@yahoogroups.com
PGP-Basics-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
PGP-Basics-***@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/
Peter Meyns
2013-12-30 15:58:55 UTC
Permalink
On Mon, 30 Dec 2013 23:10:04 +0800 (SGT)GMT (30.12.2013, 16:10 +0100GMT here),
Post by Upendra Adarkar
thanks a lot it is working for new files but now i have two questions
1. how i can decrypt my old files?
Only with the recipient's key.
Post by Upendra Adarkar
2. if i changed my existing command to given by your command will
my customer able to decrypt files without doing any changes at his level?
Yes, he will.
--
Cheers
Peter

And always remember that it's bad style
to start a sentence with a conjunction!
'



------------------------------------

______________________________________________________________
Archives: http://groups.yahoo.com/group/PGP-Basics/messages
OT List: http://groups.yahoo.com/group/PGP-Basics-OT
OT Subscribe: mailto:PGP-Basics-OT-***@yahoogroups.com
Gossamer Spider Web of Trust http://www.gswot.org

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/PGP-Basics/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/PGP-Basics/join
(Yahoo! ID required)

<*> To change settings via email:
PGP-Basics-***@yahoogroups.com
PGP-Basics-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
PGP-Basics-***@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/
Upendra Adarkar
2013-12-30 16:33:25 UTC
Permalink
Hi Mike 
i really appreciate your help.. thanks a lot for guiding me. 
wish you and your entire family a very happy and prosperous new year ahead. 

thanks and regards
Upendra






On Monday, 30 December 2013 10:59 AM, Peter Meyns <***@meynsweb.com> wrote:

 
On Mon, 30 Dec 2013 23:10:04 +0800 (SGT)GMT (30.12.2013, 16:10 +0100GMT here),
Post by Upendra Adarkar
thanks a lot it is working for new files but now i have two questions
1. how i can decrypt my old files?
Only with the recipient's key.
Post by Upendra Adarkar
2. if i changed my existing command to given by your command will
my customer able to decrypt files without doing any changes at his level?
Yes, he will.
--
Cheers
Peter

And always remember that it's bad style
to start a sentence with a conjunction!
'
Upendra Adarkar
2013-12-30 16:49:06 UTC
Permalink
Hi Peter 
thanks you very much. 
wish you and your entire family a very happy and prosperous new year ahead. 

regards
Upendra




On Monday, 30 December 2013 11:33 AM, Upendra Adarkar <***@yahoo.com> wrote:

Hi Mike 
i really appreciate your help.. thanks a lot for guiding me. 
wish you and your entire family a very happy and prosperous new year ahead. 

thanks and regards
Upendra






On Monday, 30 December 2013 10:59 AM, Peter Meyns <***@meynsweb.com> wrote:

 
On Mon, 30 Dec 2013 23:10:04 +0800 (SGT)GMT (30.12.2013, 16:10 +0100GMT here),
Post by Upendra Adarkar
thanks a lot it is working for new files but now i have two questions
1. how i can decrypt my old files?
Only with the recipient's key.
Post by Upendra Adarkar
2. if i changed my existing command to given by your command will
my customer able to decrypt files without doing any changes at his level?
Yes, he will.
--
Cheers
Peter

And always remember that it's bad style
to start a sentence with a conjunction!
'
Continue reading on narkive:
Loading...