Gary I just realized a typographical error in what I sent you that will cause a problem. I forgot the '=' sign in the following line: putenv("GNUPGHOME=/path/to/your dir/.gnupg"); Oops! Derek