Refractoring code, use S/MIME utility for RSA mode
add config sample file (testing purpose)