Represents an SSL certificate created for a Cloud SQL instance. To use the SSL certificate you must have the SSL Client Certificate and the associated SSL Client Key. The Client Key can be downloaded only when the SSL certificate is created with the insert method.
For a list of methods for this resource, see the end of this page.
Resource representations
An SslCert resource.
{
"kind": "sql#sslCert",
"selfLink": string,
"instance": string,
"sha1Fingerprint": string,
"commonName": string,
"certSerialNumber": string,
"cert": string,
"createTime": datetime,
"expirationTime": datetime
}
| Property name | Value | Description | Notes |
|---|---|---|---|
cert |
string |
PEM representation. | |
certSerialNumber |
string |
Serial number, as extracted from the certificate. | |
commonName |
string |
User supplied name. Constrained to [a-zA-Z.-_ ]+. | |
createTime |
datetime |
The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z |
|
expirationTime |
datetime |
The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. |
|
instance |
string |
Name of the database instance. | |
kind |
string |
This is always sql#sslCert. |
|
selfLink |
string |
||
sha1Fingerprint |
string |
Sha1 Fingerprint. |
Methods
- delete
- Deletes the SSL certificate. The change will not take effect until the instance is restarted.
- get
- Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.
- insert
- Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
- list
- Lists all of the current SSL certificates for the instance.