# REST Resource: sslCerts

- [Resource: SslCert](https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts#SslCert)
  - [JSON representation](https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts#SslCert.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts#METHODS_SUMMARY)

## Resource: SslCert

SslCerts Resource

| JSON representation |
|---|
| ``` { "kind": string, "certSerialNumber": string, "cert": string, "createTime": string, "commonName": string, "expirationTime": string, "sha1Fingerprint": string, "instance": string, "selfLink": string } ``` |

| Fields ||
|---|---|
| `kind` | `string` This is always `sql#sslCert`. |
| `certSerialNumber` | `string` Serial number, as extracted from the certificate. |
| `cert` | `string` PEM representation. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z` Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `commonName` | `string` User supplied name. Constrained to \[a-zA-Z.-_ \]+. |
| `expirationTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `sha1Fingerprint` | `string` Sha1 Fingerprint. |
| `instance` | `string` Name of the database instance. |
| `selfLink` | `string` The URI of this resource. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts/createEphemeral` | Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. |
| ### `https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts/delete` | Deletes the SSL certificate. |
| ### `https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts/get` | Retrieves a particular SSL certificate. |
| ### `https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts/insert` | Creates an SSL certificate and returns it along with the private key and server certificate authority. |
| ### `https://docs.cloud.google.com/sql/docs/sqlserver/admin-api/rest/v1/sslCerts/list` | Lists all of the current SSL certificates for the instance. |