1
votes

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,

1

1 Answers

2
votes

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