add genpem.sh which can generate pem files for encrypt and decrypt