I got it to work. I had a pgpuser account, I copied C:\Documents and Settings\pgpuser\Application Data\PGP folder to the coldfusion user and that did it
Thanks everyone Peterson, Chris wrote: > Hahaha, had to de-sensitize the data =) > > -----Original Message----- > From: Robertson-Ravo, Neil (RX) > [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 3:06 PM > To: CF-Talk > Subject: Re: PGP CFEXECUTE > > "userWeAreSendingTo" :-) > > > > > > > > "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, > Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, > Registered in England, Number 678540. It contains information which is > confidential and may also be privileged. It is for the exclusive use of > the > intended recipient(s). If you are not the intended recipient(s) please > note > that any form of distribution, copying or use of this communication or > the > information in it is strictly prohibited and may be unlawful. If you > have > received this communication in error please return it to the sender or > call > our switchboard on +44 (0) 20 89107910. The opinions expressed within > this > communication are not necessarily those expressed by Reed Exhibitions." > Visit our website at http://www.reedexpo.com > > -----Original Message----- > From: Peterson, Chris > To: CF-Talk > Sent: Fri Dec 08 18:56:42 2006 > Subject: RE: PGP CFEXECUTE > > Michaels is right, the user that you are running Coldfusion as needs to > be the one that has your keyrings associated to it. This is my command > line that we use: > > <cfexecute name="c:\program files\Network Associates\PGPCMDLN\pgp.exe" > arguments="-e D:\temp\filename.txt userWeAreSendingToo -o > D:\temp\filename.asc +force" outputfile="c:\log.txt"> </cfexecute> > > This has worked great for us sending wage information for check clearing > purposes to our bank! > > Chris Peterson > > -----Original Message----- > From: Jordan Michaels [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 12:18 PM > To: CF-Talk > Subject: Re: PGP CFEXECUTE > > Brian Peddle wrote: > >> I am using PGP 6.5.8 to decrypt a file. I can successfully run a >> command line to decrypt but I would like to run inside of a coldfusion >> > > >> process. I currently run it in a .bat file and tried at first to just >> > > >> execute the .bat but got the error: >> >> File is encrypted. Secret key is required to read it. >> You do not have the secret key needed to decrypt this file. >> >> <cfscript> >> args = ArrayNew(1); >> args[1] = "C:\Inetpub\ftproot\LocalUser\foo\filename.txt.pgp"; >> args[2] = " -o C:\internet\import\filename.txt"; >> args[3] = " -z passkeyhere"; >> args[4] = " +batchmode"; >> args[5] = " +force"; >> </cfscript> >> >> >> <cfexecute name ="C:\Program Files\Network Associates\PGPNT\pgp.exe " >> arguments="#args#" >> > outputfile="C:\internet\import\test.txt"></cfexecute> > >> I get the same error. >> >> I have tried to give the coldfusion user admin rights, that didn't do >> it. Tried a variety of combinations on the args and no luck. Has >> anyone done this using CFXECUTE. I know there is the CFX_PGP tag but >> > I > >> thought I would go this route first since it should work. I also >> couldn't find any decrypt docs on CFX_PGP to demo it properly. >> >> Thanks >> > > Hello Brian, > > We do this with GPG (very similar to PGP) and your problem is almost > certainly related to the user that CF is using to execute this batch > file. You will need to add the secret and public key to the user account > that CF uses in order to run these commands successfully. > > Alternatively - and I don't know if it's possible in Windows - but you > could write a batch file that runs commands as a different user. In > linux this is the "sudo" command (Switch User then DO), but again, I'm > not familiar enough with Windows batch files to know if this is possible > in Windows or not. > > This is slightly OT, but I also want to commend you for taking the > initiative to do this. I can't tell you how many times I've come across > e-commerce applications that use SSL when a user provides their CC > information to a merchant, only to have that same information sent > UNENCRYPTED in a plain-text email to the site owner. ::sigh:: As a > hacker it would be much simpler for me to monitor emails and steal CC > information from them then it would be for me to watch web traffic > (SSL). > > So... snaps go to you for taking the time to secure sensitive > information. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263380 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4