Set proper file permissions for public key