By default , Junos Space Network Management Platform uses a self-signed SSL Certificate. When you try to issue API GET/POST requests on your Junos Space URL or VIP(eth0:0) IP address with the appropriate Headers (Authorization, Content-type,etc) by a Junos API user, you may see the errors below on the REST API Client.
Browser used: Chrome REST API Client: Advanced REST API Client
An internet browser will state that a website certificate is untrusted if that certificate has not been signed by a trusted Certificate Authority. In order for a browser to accept a certificate, it must be able to link it to a 'trusted root certificate'. Trusted root certificates are embedded into popular browsers such as Internet Explorer, Firefox, Chrome and Comodo Dragon. These root certificates are used as trust 'anchors' to verify the legitimacy of all website certificates that the browser encounters. If a browser encounters a certificate that is not signed by one of these roots, then it will state it is untrusted and visitors will see an error message like the one below:
Seeing the alert does not necessarily mean that the website you're visiting is trying to trick you into believing it is a different website. It means that your web browser is unable to verify the identity of the website, and that you should proceed carefully.
To Fix the issue.
Now, login to your REST Client and issue an API GET/POST/PUT request. It should be successful.