From: VictorMitu <victorm...@yahoo.com> > I have the following scenario: > i need an application that will do the following: > 1. there is an input folder. In this folder, files will be > copied/downloaded. > 2. An application/script will periodically query this folder (auto-detection > is also accepted). > 3. if a new file is detected, the application will execute openssl smime > -encrypt | openssl smime -sign commands on the file. > 4. the output files (encrypted file and encrypted-signed files) will be > dropped in an Output folder. > The reverse operation is also expected: > 1. an input folder will be queried periodically for new encrypted-signed > files (auto-detection is also accepted). > 2. if a new file is found, the following commands are applied: openssl smime > -verify | openssl smime -decrypt and the following actions are perfromed: > 2.1. The Signature is verified. The validation process will drop to an > external file (txt, csv) the result of the validation (pass/failed). > 2.2 The Encrypted file is decrypted in another folder. > My question is actually a request for a recommandation related to an easy > development tool (programming language, scripting) that is able to perform > these operations, including the injection of openssl commands.
Most languages can do this (execute external programs). Even a simple shell script run from cron... cd $INPUT_DIR ls | while read FILE do openssl_cmd1 $FILE $FILE.crypted openssl_cmd2 $FILE.crypted ... mv $FILE.crypted $OUTPUT_DIR/ rm -f $FILE done Copy/paste and adapt for the reverse. It depends on the level of sophistication you want... JD ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org