Skip to main content
GET
Get Certificate
Authorization
string
required
The API key for your account. You can find this in your account settings.
Returns the TLS certificate the database uses for encrypted connections, base64-encoded so it can be written straight to a .pem file. Managed MongoDB, MySQL and PostgreSQL databases each ship with their own certificate; check your driver’s TLS options to see whether it needs one. The database must be running when you call this, if it is stopped, start it first. To rotate the certificate instead of just reading it, use Reset Credentials with reset: "certificate", then re-fetch it here.

Parameters

database_id
string
required
The ID of the database.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
response
object
The contents of the response.

Common errors