This article shows how to change download application permission setting on MacOS when a device certificate can not be installed properly.
Click "System Preferences."
Click "Security & Privacy."
Check if "Allow apps downloaded from:" → "App Store and Identified developers" is ON or not.
If not, click "Click the lock to make changes" and make it ON.