You do not have the secret key needed to decrypt this file

Hi All,

We are getting the below message on decrypting a PGP encrypted file.and the file is not being decrypted

"Pretty Good Privacy™ Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF™ Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.

File is encrypted. Secret key is required to read it.
You do not have the secret key needed to decrypt this file.
Decryption completed !!! Check /a/b"

Dear Naveen,

which version Gpg4win are you trying?

Can you give us the command line you are using?

Best Regards,

We use the below command in our script to decrypt the file in our AIX server

pgp -d ${pathoffile}/${filename} “$PGP_USER”;

pathoffile = path of the encrypted file
filename = name of the encrypted file
PGP_USER = “xyz (xyz)”;

We use Pretty Good Privacy™ Version 6.5.8

if this is not the information you are looking for kindly let me know how to check Gpg4win version

Hi Naveen,

it looks like you are really using pgp on AIX.

Note that this forum is about the microsoft windows version of GnuPG (which
comes with an executable that is called gpg) which is a different product.
You can learn about it at and
GnuPG is a Free Software product that offers crypto functionality that in
some areas is comparable to that of PGP and may replace PGP if that is what you are looking
for. As far as I know there are GnuPG versions that run on AIX, check out

There are probably support places for pgp as well.

Best Regards,