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_IDGoogle-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 --globalCertificate Manager (Modern API)
Create certificate
gcloud certificate-manager certificates create example-cert \
--domains=example.com,www.example.com
# List certificates
gcloud certificate-manager certificates listSee Also
Important Notes
Free Managed Certificates:
Google-managed certificates are free and automatically renewed.
Documentation:
GCP Certificate Manager: cloud.google.com/certificate-manager/docs