I’m trying to connect to the REST API by using the Go lxd.Client. The problem is that I don’t know how I can do a SSL authentication using the client.
I read in the documentation about a struct called ConnectionArgs, but the problem is that it’s not clear what I should pass in it:
In this struct there are some parameters like: TLSServerCert, TLSClientCert, TLSClientKey; but I’m not sure if I should pass the path to the certificates/keys or if I should pass the content of them instead.
Can someone explain that and/or put an example of how can I populate that struct with valid values?