Permissions for 'file.pem' are too open. I code example Example: pem key permissions too open chmod 400 mykey.pem