Fix for call on incorrect variable

Fixes #31
Also throw an Exception if you give a passphrase for an unencrypted certificate

Fixed issue #32
Merge branch 'refs/heads/development'