Skip to content

GetCertificate

POST
/hopbox.admin.v1.CertificateService/GetCertificate
curl --request POST \
--url https://example.com/hopbox.admin.v1.CertificateService/GetCertificate \
--header 'Connect-Protocol-Version: 1' \
--header 'Connect-Timeout-Ms: 1000' \
--header 'Content-Type: application/json' \
--data '{}'

GetCertificate returns the certificate of the install, without its key, and the state of the ACME job.

Connect-Protocol-Version
Connect-Protocol-Version

Define the version of the Connect protocol

number
Allowed value: 1

Define the version of the Connect protocol

Example

1
Connect-Timeout-Ms
Connect-Timeout-Ms

Define the timeout, in ms

number

Define the timeout, in ms

Example

1000
Media typeapplication/json
GetCertificateRequest

GetCertificateRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
GetCertificateResponse

GetCertificateResponse holds the certificate and the state of the ACME job.

object
certificate
certificate

Certificate is absent before the first certificate of the install.

object
domain
domain

Domain is the domain of the install that the certificate covers.

string
names
names

Names are the DNS names of the certificate: the domain and its wildcard.

Array<string>
serial
serial

Serial is the serial number of the certificate, in lowercase hex.

string
issuer
issuer

Issuer is the subject of the CA certificate that signed the certificate.

string
notBefore
not_before

Not_before is the start of the validity of the certificate.

string format: date-time
notAfter
not_after

Not_after is the end of the validity of the certificate.

string format: date-time
renewTime
renew_time

Renew_time is the time at which the certificate is due for renewal: after two thirds of its lifetime.

string format: date-time
directoryUrl
directory_url

Directory_url is the ACME directory that issued the certificate.

string
updateTime
update_time

Update_time is when the certificate replaced the one before it.

string format: date-time
status
status

Status is the state of the ACME job.

object
failures
failures

Failures counts the attempts that failed since the last certificate.

integer format: int32
lastAttemptTime
last_attempt_time

Last_attempt_time is the start of the last attempt. It is absent before the first attempt.

string format: date-time
lastError
last_error

Last_error is the error of the last attempt that failed. It is empty after a certificate. A change of the install config keeps it until the next attempt.

string
nextAttemptTime
next_attempt_time

Next_attempt_time is the earliest time of the next attempt after a failure. It is absent after a certificate.

string format: date-time
caWait
ca_wait

Ca_wait is true when the CA asked for the wait until next_attempt_time, with a rate limit or a Retry-After. A change of the install config does not end such a wait.

boolean
termsUrl
terms_url

Terms_url is the URL of the terms of service of the CA that the directory named at the last attempt. The first attempt after an agreement records it, so it is empty before that attempt.

string
renewalsStopped
renewals_stopped

Renewals_stopped is why the ACME job plans no renewal of the certificate, such as no agreement to the terms of the CA. It is empty while the job renews the certificate, and before the first certificate.

string

Example

{
"certificate": {
"notBefore": "2023-01-15T01:30:15.01Z",
"notAfter": "2023-01-15T01:30:15.01Z",
"renewTime": "2023-01-15T01:30:15.01Z",
"updateTime": "2023-01-15T01:30:15.01Z"
},
"status": {
"lastAttemptTime": "2023-01-15T01:30:15.01Z",
"nextAttemptTime": "2023-01-15T01:30:15.01Z"
}
}

Error

Media typeapplication/json
Connect Error
object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

string
Allowed values: canceled unknown invalid_argument deadline_exceeded not_found already_exists permission_denied resource_exhausted failed_precondition aborted out_of_range unimplemented internal unavailable data_loss unauthenticated
message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

string
details

A list of messages that carry the error details. There is no limit on the number of messages.

Array<object>

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.

object
type

A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.

string
value

The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

string format: byte
debug
Debug

Deserialized error detail payload. The ‘type’ field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.

object
key
additional properties
any
key
additional properties
any
key
additional properties
any

Example

{
"code": "canceled"
}