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:-
So let’s just go straight into the SSL thing. Original article is available here.
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
Hi thanks for dropping by. Please share the content if you think there is someone who will appreciate it.