Unable to encrypt file with private/public key

Haritwal, Dhiraj Dhiraj.Haritwal at ap.sony.com
Fri Dec 19 12:05:05 CET 2014


One more thing, this time when I encrypt the file with my private key (without sign & only with armor switch), it's still asking passphrase to decrypt it even  on my same server. That means it's still using PassPhrase to encrypt the file. Does it somewhere set by default in the Gnupg config.

Dhiraj



-----Original Message-----
From: Gnupg-users [mailto:gnupg-users-bounces at gnupg.org] On Behalf Of Haritwal, Dhiraj
Sent: 19 December 2014 16:06
To: gnupgpacker; gnupg-users at gnupg.org
Subject: RE: Unable to encrypt file with private/public key

Thanks for the clarification, Chris. I got confused with recipient switch. In general (Exchange), Recipient is the one to whom we are sending the data or who will receive data. In our case we are sending the data to partner hence I was using partner's public key to encrypt the file. After I used my private key, the warning has gone & the file is encrypted in .asc format.

One more query, partner is saying they are unable to decrypt this file with my private key which they have trusted & asking to encrypt this file with my private key & their public key (already trusted on my server). when I am suing both the key identifier's, giving some syntax error. Kindly suggest how can I do this.


Dhiraj




-----Original Message-----
From: Gnupg-users [mailto:gnupg-users-bounces at gnupg.org] On Behalf Of gnupgpacker
Sent: 19 December 2014 15:32
To: gnupg-users at gnupg.org
Subject: Unable to encrypt file with private/public key

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

@Dhiraj:

Encrypting:
You encrypt a message with recipient's public key, no password is required.
(Password is only known by recipient.)

Signing:
You sign a message with your own private key, you must admit your private key's password.

Regards, Chris
(RSA-Testkey 0x3E2E0598)

> What I have
> learned so far from these threads is Signing always require a
> passphrase whereas encryption can be done without Passphrase & it requires a Key.
> Correct me if my understand is not correct.
> I was doing a mistake. I
> was trying to encrypt the file with Partner Key hence it was showing
> the warning. While sending the file to partner I have to use my own
> key which I have share with them to decrypt it.


-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJUk/epAAoJEMMs0SrWTTEmkz8P/1yuKwvlFf4w2tE4/q84G/Ae
zqhvgcwK5ILEfBJtL6Hc027ujnrmATe42Vk4TCaN1aEG8/uLPlsqIO8+ZfVV0YDl
+UP+eLPw9Zqi7Bq+tvKtbSfS7VTmAUYtfTckAco/1PBfI5Sm0EbzvGf1jzPGHgoH
z1b3MiYy4RWK/S3syL8TmV6tPYpl+Jf9D5qtMTQ/e0SfoLm4AFRTg5N/vU0Hg1Xc
h1oEHDmRdlZ2TZTTsGscfx9WwzruVpg2cxZeUgZ4uFfgGOdazHvpEy+li/yVRAwf
PWoM5xjPte9Tc0/5q4NL7CFvvlKMdLJhZHAOhjIFOvHrCIlEhViy8kKoqoFyKG9a
HmzyNL3tajRASCdXaN92UUee2781nB7FIer65QoUdQ7cTozUHF3A2GCRwKu/jyb+
QLa8VOxPF/UUdeS9sYcoe2Cu4A69HJnohYpTaLzAnr89O7FyK2zjqbtIJhxoXy8v
6IIk1DfYCZkb9k1E3dMoIORGYCwdCcnNdJUkA4EkOh+9+a2e4hThnJm0b3OUT9Jy
NShDaMS+ZFv61Wv5KH8js/d38ryG5lXcopNuav2LxHb+zMh8CulFQ8FhW4rVA72S
pJFRmGfEusRVnCaPCwCHcOOlM8gHyZGrCP/GmrLT7v8vKe/AGbXCtavCss8UWeNz
x/GqhPsbfXE1FuhMHWhF
=r8V4
-----END PGP SIGNATURE-----

_______________________________________________
Gnupg-users mailing list
Gnupg-users at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

________________________________

This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. - This mail is sent via Sony Asia Pacific Mail Gateway..

_______________________________________________
Gnupg-users mailing list
Gnupg-users at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

________________________________

This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. - This mail is sent via Sony Asia Pacific Mail Gateway..



More information about the Gnupg-users mailing list