added Certificate Encrypt/Decrypt functions