sowdri
sowdri

Reputation: 2243

How to add a new domain to an existing google managed SSL certificate using GCloud command

Trying to add a new domain to a google managed ssl certificate using gcloud cli.

gcloud compute ssl-certificates create ssl-cert-1 --domains www.site1.com

How to add www.site2.com to ssl-cert-1?

Thanks in advance,

Upvotes: 2

Views: 1489

Answers (1)

llompalles
llompalles

Reputation: 3186

The Cloud SDK interface for the compute ssl-certificates resources only has 4 methods:

  • create
  • delete
  • describe
  • list

To be able to add a new domain to your SSL certificate you will need to delete the certificate and create a new one adding both domains with the --domains flag:

gcloud compute ssl-certificates create ssl-cert-1 --domains www.site1.com,www.site2.com

Upvotes: 6

Related Questions