Raise error on missing settings.private_key