Getting a cert error trying to use the api

I am trying to call the /api/auth.client as outlined in the https://download.peplink.com/resources/Peplink-Router-API-Documentation-for-Firmware-8.5.0.pdf

I am using this curl command:
curl -X POST https://192.168.50.1 -H “Content-Type: application/json” -d ‘{“name”:“homeassistant”,“scope”:“api”}’

Add a -k or --insecure to the command line, or add a cert and use the name.