Page Loader

This entry will just proceed to the steps of getting https or SSL for your domain pointed to Google’s VM. The assupmtions below apply:-

  1. You have successfully setup your VM and it’s running
  2. You have pointed your domain to the VM

So let’s just go straight into the SSL thing. Original article is available here.

  1. Check your machine OS

In your SSH session to the VM, issue this command:

lsb_release -a

Output example:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:        9.5
Codename:       stretch

Take note the OS is Debian 9.5 stretch

2. Getting the right instruction from Certbot

Visit certbort.eff.org and select Apache under Software and Debian 9 (stretch) under System.

3. Install Certbot

Under Install, check the instruction such as:

$ sudo apt-get install certbot python-certbot-apache -t stretch-backports

Copy this instruction and run it at command line of your SSH session with the VM.

Answer Yes for this question:

After this operation, 10.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]

4. Generate SSL Certificate

Under Get Started, copy the command like this:-

$ sudo certbot --apache

Run it in your SSH session.

It will list all your domain in that CM and select the ones you are working on, separated by commas.

Then it will ask whether to redirect, select 2.

Then you get this confirmation:

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:

Now just reboot the Apache:

sudo service apache2 restart

Comments
Leave a Reply

Your email address will not be published. Required fields are marked *

Highlights
Recent Posts
Instagram Feed
                                    topglov, harta, supermx, comfort
#bursa
                                    Selain dari pasang batu bata saya juga ambil kontrak potong rumput.

#pkpb #covid19
                                    #kitabakor lagi
                                    #kitabakor
                                    Expecting to close above 10W average this week.. aminnn.
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93973591_2583662348565050_5463274316583976513_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=LlqmRE5BV4MAX-HK6m4&oh=0e5504787aaa05c90305c5dea64b8fab&oe=5EDAD422
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93402322_532745040759024_6091110860798729703_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=qd6nLUp_Z_QAX92W-J9&oh=c57f060ccf10bfe0e92551dba9c1fc48&oe=5F02D87C
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93100512_1537334973102603_72053284478751020_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=P15VJJlrVDgAX9pk-5j&oh=0c9dd5766ba34cb7c71198dd0f84ccd5&oe=5F021221
                                    #botolinone
#stayathomechallenge
#chipshotchallenge