SslCerts

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.
sha1Fingerprint string Sha1 Fingerprint.

Methods

createEphemeral
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
delete
Deletes the SSL certificate.
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.
list
Lists all of the current SSL certificates for the instance.

Send feedback about...

Cloud SQL for MySQL