Managing SSL/TLS certificates

This page describes how to manage your server certificates.

Using encrypted connections

Learn more about how SQLServer uses encrypted connections.

Managing server certificates

Getting information about a server certificate

You can get information about your server certificate, such as when it expires or what level of encryption it provides.

Console

  1. Go to the Cloud SQL Instances page in the Google Cloud Console.

    Go to the Cloud SQL Instances page

  2. Click the instance name to open its Instance details page.
  3. Click the Connections link in the left navigation pane.
  4. Scroll down to the Configure SSL server certificates section.

    You can see the expiration date of your server certificate in the table.

    To see the certificate type, use the gcloud beta sql ssl server-ca-certs list --instance=[INSTANCE_NAME] command.

gcloud

gcloud beta sql ssl server-ca-certs list --instance=[INSTANCE_NAME]

REST

You can see details about the server certificate when you describe your instance:

Before using any of the request data below, make the following replacements:

  • project-id: The project ID
  • instance-id: The instance ID

HTTP method and URL:

GET https://www.googleapis.com/sql/v1beta4/projects/project-id/instances/instance-id?fields=serverCaCert

To send your request, expand one of these options:

You should receive a JSON response similar to the following:

Resetting the SSL/TLS configuration

You can completely reset your SSL/TLS configuration.

gcloud

  1. Refresh the certificate:

    gcloud sql instances reset-ssl-config [INSTANCE_NAME]
    

REST

  1. Refresh the certificate:

    Before using any of the request data below, make the following replacements:

    • project-id: The project ID
    • instance-id: The instance ID

    HTTP method and URL:

    POST https://www.googleapis.com/sql/v1beta4/projects/project-id/instances/instance-id/resetSslConfig

    To send your request, expand one of these options:

    You should receive a JSON response similar to the following:

What's next