File: certificates.rst

package info (click to toggle)
python-pylxd 2.2.10-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 820 kB
  • sloc: python: 7,258; sh: 104; makefile: 21
file content (29 lines) | stat: -rw-r--r-- 897 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Certificates
============

Certificates are used to manage authentications in LXD. Certificates are
not editable. They may only be created or deleted. None of the certificate
operations in LXD are asynchronous.

Manager methods
---------------

Certificates can be queried through the following client manager
methods:

  - `all()` - Retrieve all certificates.
  - `get()` - Get a specifit certificate, by its fingerprint.
  - `create()` - Create a new certificate. This method requires
    a first argument that is the LXD trust password, and the cert
    data, in binary format.


Certificate attributes
----------------------

Certificates have the following attributes:

  - `fingerprint` - The fingerprint of the certificate. Certificates
    are keyed off this attribute.
  - `certificate` - The certificate itself, in PEM format.
  - `type` - The certificate type (currently only "client")