One authority.

GET /organizations/{organizationId}/authorities/{authorityId}

GET https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}

Operation ID organizations.organizationId.authorities.authorityId.get
Access Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Or: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parameters

NameInTypeDescription
organizationId Path Required string (snowflake) The organization.
authorityId Path Required string (snowflake) The authority.

Responses

StatusDescriptionSchemaContent type
200 One authority. AuthorityPage application/json, text/html, text/markdown
403 Your roles here do not allow this. Problem application/json, text/html, text/markdown
422 The input was rejected; errors names each failure. ValidationProblem application/json, text/html, text/markdown
Any other status The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json, text/html, text/markdown

200 One authority.

PropertyTypeDescription
pki_organizations_id string (snowflake) Required The organization's ID.
pki_organizations_name string Required One customer, product or team: what holds authorities, certificates and machines; up to 100 characters.
pki_agencies_id string (snowflake) Required The agency's ID; for an organization, the ID of the agency that holds it.
pki_agencies_name string Required Your company, or the agency you run for your clients, up to 100 characters; it holds their organizations.
authorities_id string (snowflake) Required The authority's ID.
authorities_name string Required What you call the authority in ZanPKI, up to 100 characters; its exported files are named after it.
authorities_common_name string Required The subject common name, such as the host name.
authorities_created_at integer (int64) Required When the authority starts, as its certificate says, in seconds since the Unix epoch.
authorities_expires_at integer (int64) Required When the authority ends, as its certificate says, in seconds since the Unix epoch.
serial string Required Its certificate's serial number, as uppercase hex pairs joined by colons.
authorities_key_type one of: 1, 2, 3, 4, 5 Required EC P-256 suits nearly every client and is the fastest; RSA is for devices that take nothing else.
key_type_label string Required The key's type written out for display: RSA 2048, RSA 3072, RSA 4096, EC P-256 or EC P-384.
authorities_digest one of: 1, 2, 3 Required What its certificate is signed over; empty for the one that matches the signing key: SHA-384 for P-384, SHA-256 for the rest.
digest_label string Required The digest its certificate is signed over, written out for display: SHA-256, SHA-384 or SHA-512.
authorities_status one of: 1, 2 Required Where it stands: 1 active, in force until it ends, or 2 revoked, which its issuer's revocation list tells everyone. An active one whose end has passed has ended, which status_label says.
status_label string Required Its status written out for display: Active, Revoked, or Ended for one still active whose end has passed.
authorities_revoked_at integer (int64), or null Required When it was revoked, in seconds since the Unix epoch; null while it is not.
authorities_revocation_reason one of: 0, 1, 2, 3, 4, 5, 9, null Required Why it was revoked, as its issuer's revocation list says: 0 unspecified, 1 key compromised, 2 authority compromised, 3 affiliation changed, 4 superseded, 5 no longer in use or 9 privilege withdrawn; null while it is not revoked.
revocation_reason_label string, or null Required Why it was revoked, written out for display, such as Key compromised; null while it is not revoked.
revocation_list_url string (uri), or null Required Where its revocation list is, on plain http, for anyone given the address; null until it has one.
revocation_list_next_update integer (int64), or null Required When its next list is due, in seconds since the Unix epoch; null without a list, or when one is due now.
revocation_list_due boolean Required Whether its revocation list is due now: it has none yet, its last one has ended, or a revocation is not on it yet. Only an authority that can sign its list, active and in force with its key held here, is ever due.
may_publish_revocation_list boolean Required Whether you may publish its revocation list now: it can sign one, being active and in force with its key held here, and your roles let you manage authorities or issue certificates (authorities:manage or certificates:issue).
authorities_issuer_authority_id string (snowflake), or null Required The authority of the organization that signed it; null when it signed itself, or its issuer is not here.
issuer_name string, or null Required The name of the authority here that signed it; null when it signed itself, or its issuer is not here.
revoked_above_name string, or null Required The name of the nearest revoked authority in its issuer chain; null when none is. Clients refuse everything under a revoked authority.
signs_itself boolean Required Whether it is a root: its certificate names itself as its issuer.
authorities_origin one of: 1, 2, 3 Required Where it came from: 1 internal, made by ZanPKI; 2 imported; or 3 public authority, standing for the root of a public certificate authority (Let's Encrypt, ZeroSSL or Google), which holds no key here.
origin_label string Required Where it came from, written out for display: Internal, Imported or Public authority.
holds_private_key boolean Required Whether its private key is held here, so it can sign; false for one imported without its key, and for a public authority.
country string, or null Required Its two letters, such as US.
state string, or null Required The subject's state or province, up to 64 characters; empty for none.
city string, or null Required The subject's city or locality, up to 64 characters; empty for none.
organization string, or null Required The company or other organization the subject belongs to, as the certificate names it, up to 64 characters; empty for none.
unit string, or null Required A department or team within the subject's organization, up to 64 characters; empty for none.
email string, or null Required An email address in the subject; empty for none. It must be one the signing authority and every authority above it permit.
permitted_names list of string Required The names its certificate's name constraints permit, the only ones it and every authority under it may certify, each written as OpenSSL writes it, such as DNS:example.com or IP:10.3.1.0/24; empty when it has no such constraint.
excluded_names list of string Required The names its certificate's name constraints exclude, written the same way, such as DNS:every name for one that permits only IP ranges; empty for none.
may_create_intermediate boolean Required Whether you may create an authority under it now: your roles let you manage authorities (authorities:manage), it can sign, being active and in force with its key held here, nothing in its issuer chain is revoked, and the path length limits of its chain leave room for one more.
may_revoke boolean Required Whether you may revoke it now: your roles let you manage authorities (authorities:manage), it is active, and its issuer here can sign, being active and in force with its key held here.
fingerprint_sha256 string Required The SHA-256 fingerprint of its certificate, as uppercase hex pairs joined by colons.
may_export_private_key boolean Required Whether your roles let you export its private key (authorities:manage); an export of the key also needs it held here.
may_delete boolean Required Whether your roles let you delete it (authorities:manage).
revocation_list_named string, or null Required The revocation list address its certificate names when that is not its issuer's list here, as for one signed before its issuer was imported; null when it names that list or none, or its issuer is not here.

403 Your roles here do not allow this.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required An explanation of what went wrong, written for people to read.
instance string Required The path the request was sent to.

422 The input was rejected; errors names each failure.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required An explanation of what went wrong, written for people to read.
instance string Required The path the request was sent to.
errors InputErrors Required What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Any other status: The request was refused. The problem's type names why, and its detail explains it for people to read.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required An explanation of what went wrong, written for people to read.
instance string Required The path the request was sent to.

Example

curl -X GET 'https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}' \
  -H 'Authorization: Bearer <access token>'

All documentation

0 database statements · 14 reads from the cache · 0.0 ms waiting for the database · 32.0 MiB peak memory
public.settingsSELECTfrom the cache
public.mesh_nodesSELECTfrom the cache
public.fqdnsSELECTfrom the cache
public.sitesSELECTfrom the cache
public.api_buildsSELECTfrom the cache
public.docs_guidesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.api_buildsSELECTfrom the cache
public.docs_guidesSELECTfrom the cache