Copy link to clipboard
Copied
Hello,
I'm trying to encrypt a file with CFEXECUTE, using OpenSSL. When I run the code in the command prompt, it works fine and the new encrypted file appears in the correct folder. Also, I can run CFEXECUTE with OpenSSL with just one argument and it works fine. ie arguments="version". But the following does not return a value, nor does it create the new folder:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
arguments = "aes-256-cbc -a -salt -in ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets.txt"" -out ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets2.txt"""
variable = "result"
timeout = "5">
</cfexecute>
<cfdump var="#result#">
Any ideas?
Pete
Copy link to clipboard
Copied
BYW,
This runs fine:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
arguments = "list-standard-commands"
variable = "result"
timeout = "5">
</cfexecute>
<cfdump var="#result#">
and so does this:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
arguments = "version"
variable = "result"
timeout = "5">
</cfexecute>
<cfdump var="#result#">
Maybe someone has a multiple argument example of CFEXECUTE that runs fine.
I'd be interested to know.
Pete
Find more inspiration, events, and resources on the new Adobe Community
Explore Now