smime signer script..

From: mike_josh@verizon.net
Date: Thu Oct 27 2005 - 10:32:25 EDT


Hi Sun Gurus,

I am working with solaris 10, and am trying to setup a gateway server using Sun java system messaging server 6, so that the gateway signs a particular email passing through it; and other emails just relays through it.

I am given the following script which I believe is not complete:

-------------------------------------------------
#!/usr/bin/sh

SMIME_DIR=/smime

LD_LIBRARY_PATH=/usr/sfw/lib

user=`awk '/X-Envelope-from/ {print $2}' $INFO_FILE`

if [ ! -d $SMIME_DIR/$user ]; then
        user="default";
fi

/usr/sfw/bin/openssl smime -sign -inkey $SMIME_DIR/$user/private -signer $SMIME_DIR/$user/mycert -certfile $SMIME_DIR/$user/othercerts -in $INPUT_FILE -out $OUTPUT_FILE

return

-----------------------------------------------

I don't see where $INFO_FILE, $INPUT_FILE, and $OUTPUT_FILE ties into. Could someone help me either fill in the blanks or give me some tips.
Much appreciated.

Mike.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:33:48 EDT