View Source NervesHubCLI.API.CACertificate (nerves_hub_cli v2.0.1)
CA certificates
Path: /orgs/:org_name/ca_certificates
Summary
Functions
Adds a new CA certificate to NervesHub. The certificate passed should be pem encoded binary and not a path to the cert file.
Removes the CA certificate with the specified serial number from NervesHub.
List all ca certificates for an organization
Functions
@spec create(String.t(), String.t(), NervesHubCLI.API.Auth.t(), String.t() | nil) :: {:error, any()} | {:ok, any()}
Adds a new CA certificate to NervesHub. The certificate passed should be pem encoded binary and not a path to the cert file.
Verb: POST Path: /orgs/:org_name/ca_certificates
@spec delete(String.t(), String.t(), NervesHubCLI.API.Auth.t()) :: {:error, any()} | {:ok, any()}
Removes the CA certificate with the specified serial number from NervesHub.
Verb: DELETE Path: /orgs/:org_name/ca_certificates/:serial
@spec list(String.t(), NervesHubCLI.API.Auth.t()) :: {:error, any()} | {:ok, any()}
List all ca certificates for an organization
Verb: GET Path: /orgs/:org_name/ca_certificates