Google Cloud Certificate Commands

Guide to managing SSL/TLS certificates using Google Cloud Certificate Manager and gcloud CLI.

Setup and Prerequisites

Install gcloud CLI

# Install gcloud (macOS)
brew install google-cloud-sdk

# Initialize gcloud
gcloud init

# Set default project
gcloud config set project PROJECT_ID

Google-Managed SSL Certificates

Create managed certificate

# Create managed SSL certificate (Load Balancer)
gcloud compute ssl-certificates create example-cert \
  --domains=example.com,www.example.com \
  --global

# List certificates
gcloud compute ssl-certificates list

# Describe certificate
gcloud compute ssl-certificates describe example-cert --global

Certificate Manager (Modern API)

Create certificate

gcloud certificate-manager certificates create example-cert \
  --domains=example.com,www.example.com

# List certificates
gcloud certificate-manager certificates list

See Also

Important Notes

Free Managed Certificates:

Google-managed certificates are free and automatically renewed.

Documentation:

GCP Certificate Manager: cloud.google.com/certificate-manager/docs