Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply SSL into Google Compute Engine Instance

I am new to Google Cloud Platform.

I bought a wildcard SSL and would like to know how to install Wildcard SSL into a Google Cloud Compute instance?

I used Cloud Shell to generate a CSR on Google Cloud Platform by using the following line of command, openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr

I managed to activate my certification and received the ca-bundle files.

But I don't know what's the next step to install the SSL. I can't find anything about SSL in the Google Compute Engine tab.

How to install a SSL certificate on Google Cloud Platform

As the website above show, I must activate my SSL via App Engine but I have doubt on it.

like image 330
Wee Hong Avatar asked Oct 02 '17 03:10

Wee Hong


People also ask

How do I add an SSL certificate to Google Cloud?

Go to the Certificates tab in the Google Cloud console. Click Create SSL certificate. Enter a name and an optional description for the certificate. Select Create Google-managed certificate.

Can we attach SSL Certificate to Network load balancer?

You can configure up to the maximum number of SSL certificates per target HTTPS or target SSL proxy. Use multiple SSL certificates when you are serving from multiple domains using the same load balancer IP address and port, and you want to use a different SSL certificate for each domain.


1 Answers

There are different scenarios where SSL certificates can be used in GCP. The steps of the document you have linked applies for GAE but not for GCE.

If you have GCE instances running behind a load balancer, the certificate must be uploaded there. You can find the details on this article.

If you are not using a GCE LB and instead your instances are serving traffic directly, you must configure the certificate on the server. I.e. for NGINX you can follow these instructions.

like image 106
Digil Avatar answered Oct 21 '22 17:10

Digil