Is there a means to get the server certificate from a lxd remote such that I can use that with “juju add-credentials --file ./credfile.yaml” ?
Tje juju credential file looks like this:
credentials:
labb3:
erik-frozen:
auth-type: certificate
client-cert: |
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----
client-key: |
-----BEGIN EC PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXX
-----END EC PRIVATE KEY-----
server-cert: |
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----
So, I’m looking for a means to get the server-cert without having to login to the remote and get it.