Force permissions to private key file to 600

Related to #101
Fix unit test
Pre-release 0.3.4.pre
Merge pull request #102 from ggiamarchi/fix_permissions

Force permissions to private key file to 600