Problem with REST API

Hi, I have a problem with the LXC REST API. I set the port and password on which the API should listen. And how I use curl on the machine I get the response.

But when I try to do the same using the Postman application I get the server is down !(

Maybe someone knows how to configure or fix it

Hi, If you are using self signed certificates, you need to allow it in Postman.
In your Postman screenshot at line with: Self-signed SSL certificates are being blocked: Fix this by turing off ‘SSL certificate verification’ in Settings > General

You can easy create and set certificate for LXD API:

openssl genrsa -out lxd.key 4096 # Generate a private key.
openssl req -new -key lxd.key -out lxd.csr # Create a certificate request.
openssl x509 -req -days 3650 -in lxd.csr -signkey lxd.key -out lxd.crt # Generate an auto signed certificate.
lxc config trust add lxd.crt # Tells LXC to use this certificate for auth.