- gcloud alpha compute ssl-certificates create - create a Google Compute Engine SSL certificate
gcloud alpha compute ssl-certificates create NAME (--domains=DOMAIN,[DOMAIN,...] | --certificate=LOCAL_FILE_PATH --private-key=LOCAL_FILE_PATH) [--description=DESCRIPTION] [--global | --region=REGION] [GCLOUD_WIDE_FLAG ...]
(ALPHA) gcloud alpha compute ssl-certificates create is used to
You can create either a managed or a self-managed SslCertificate. A managed SslCertificate will be provisioned and renewed for you, when you specify the --domains flag. A self-managed certificate is created by passing the certificate obtained from Certificate Authority through --certificate and --private-key flags.
Name of the SSL certificate to create.
Flags for managed or self-managed certificate. Exactly one of these must be
List of domains to create a managed certificate for.
Flags for self-managed certificate
Path to a local certificate file to create a self-managed certificate. The
certificate must be in PEM format. The certificate chain must be no greater than
5 certs long. The chain must include at least one intermediate cert. This flag
must be specified if any of the other arguments in this group are specified.
Path to a local private key file. The private key must be in PEM format and must
use RSA or ECDSA encryption. This flag must be specified if any of the other
arguments in this group are specified.
- Flags for managed or self-managed certificate. Exactly one of these must be specified:
An optional, textual description for the SSL certificate.
At most one of these may be specified:
If set, the SSL certificate is global.
Region of the SSL certificate to create. If not specified, you may be prompted
to select a region.
To avoid prompting when this flag is omitted, you can set the compute/region property:
- $ gcloud config set compute/region REGION
A list of regions can be fetched by running:
- $ gcloud compute regions list
To unset the property, run:
- $ gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable CLOUDSDK_COMPUTE_REGION.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud compute ssl-certificates create $ gcloud beta compute ssl-certificates create