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
Merge branch 'v0.3.x'

Backport key permission #101