How to Generate CSR in Google Cloud Platform?

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...
Generate CSR in Google Cloud Platfrom

SSL certificate obtained from a CSR generated on Google Cloud Platform provides authentication, integrity, and confidentiality for applications, allowing clients to connect securely over HTTPS. This is an important security measure for any web or cloud application.

By generating a CSR (Certificate Signing Request) on GCP and obtaining an SSL certificate, you are telling clients that the application they are connecting to is legitimate and owned by the entity that obtained the certificate. This prevents man-in-the-middle attacks & other type of fraud.

Steps to Generate CSR and Private Key in Google Cloud Platform in Minutes

Here are the steps to generate a CSR (Certificate Signing Request) on Google Cloud Platform:

  1. Go to the Google Cloud Console.
  2. Select APIs & Services from the sidebar.
  3. Click on Credentials and then Create Credentials.
  4. Select the OAuth client ID option.
  5. Choose Application Type as Web Application.
  6. Fill in the Name and Authorized JavaScript origins.
  7. Click Create.
  8. The OAuth client ID and client secret will be generated.
  9. Make note of these credentials.
  10. Install the gcloud command line tool on your System (Device).
  11. Run the following command to authenticate the gcloud SDK with your Google account:
gcloud auth login
  1. Generate the CSR with the following command:
openssl req -new -newkey rsa:2048 -nodes -keyout <KEY FILE NAME>.key -out <CSR FILE NAME>.csr

You will be prompted for info to include in the CSR like country code, state, organization name, etc.

  1. The <KEY FILE NAME>.key file will contain your private key and <CSR FILE NAME>.csr file will contain the CSR that you can submit to a CA to request an SSL certificate.
  2. Upload the SSL certificate issued by the CA to Google Cloud Platform and update your app’s configuration to use that SSL certificate.

Perform following steps to install SSL Certificate on Google Cloud Platform.

Buy Cheap SSL Certificates