Added support for passphrase-protected private key auth
Added cleanup routine to close resources
Merge pull request #2 from bssb/master

Added support for passphrase-protected private key auth