How to Install a Free SSL Certificate on Google Cloud Platform

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 124

  • @chrispfbabyyy
    @chrispfbabyyy 4 ปีที่แล้ว +7

    Tony I was looking everywhere for this exact info. Thanks mate - Subbed!

  • @nickvledder
    @nickvledder 3 ปีที่แล้ว +3

    I was really surprised it could be that easy. For apache2 I used:
    A. sudo apt-get install certbot python3-certbot-apache
    B. sudo certbot -apache
    C. etc.
    Thanks a lot!

  • @algorerhythm7663
    @algorerhythm7663 ปีที่แล้ว

    No one does it better, thanks. I spent hours trying to do this with other videos.

  • @sebc3546
    @sebc3546 3 ปีที่แล้ว +4

    You explained this so well Tony. I would've never been able to do this without your clear, concise and easy to follow explanation. Well done and thank you.
    Edit: aaaand a few hours later I broke it somehow by adding cloudflare

  • @psicoplanner3330
    @psicoplanner3330 3 ปีที่แล้ว

    after trying several times, i finally found your video and got it the first time!

  • @JennyBachmann-m1w
    @JennyBachmann-m1w ปีที่แล้ว

    Awesome, this is exactly what I was looking for! Thank you for the quick & simple explanation.

  • @sanjayrastogi7203
    @sanjayrastogi7203 3 ปีที่แล้ว +1

    Thanks for the help buddy. I was looking all around for this and your 5 mins saved a lot of time for me. Thanks once again!

  • @viveksahu_me
    @viveksahu_me 3 ปีที่แล้ว

    Definitely deservers a Subscriber. Thanks Subscribed to this channel.

  • @FrankLiu-i3x
    @FrankLiu-i3x 10 หลายเดือนก่อน

    This is awesome you did a great job!

  • @mohammadazimkhamosh4863
    @mohammadazimkhamosh4863 8 หลายเดือนก่อน +1

    Thank you for this great info!

  • @techcodeyouthstring
    @techcodeyouthstring ปีที่แล้ว

    You are great and your solutions are really helpful and easy :)

    • @TonyTeachesTech
      @TonyTeachesTech  ปีที่แล้ว

      Glad you like them and thanks for your support!

  • @lossless4129
    @lossless4129 3 ปีที่แล้ว

    THANK TO HEAVENS....(been struggling for a minute) Thank you!

  • @matthewwillis1094
    @matthewwillis1094 4 ปีที่แล้ว +2

    Your videos are great man! Thank you!
    I noticed that the ssl encryption cert expires within only a few months so I was researching this and saw that there are ways to set "auto-renew" of the encryption. Would be awesome to see a video on how to do this with Nginx as most of the material I found was with Apache. Thanks and looking forward to more Videos!

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +1

      Thanks Matthew! This blog post on my website will show you how to set up auto renew of your SSL cert on Nginx tonyteaches.tech/lets-encrypt-renew-cron/

  • @MrRickyt88
    @MrRickyt88 2 ปีที่แล้ว +1

    I watch most videos at 1.25x to 1.5x speed but I like that I don't need to do that for your videos haha

  • @trapmosqtrapmosq1059
    @trapmosqtrapmosq1059 2 ปีที่แล้ว

    Man!!! you are the best!!!
    you are my mentor!!!

  • @NickWebsUS
    @NickWebsUS 2 ปีที่แล้ว

    That made this so much easier than I'd have imagined. Thank you!

  • @jingjingabawi8988
    @jingjingabawi8988 ปีที่แล้ว

    Hi I feel like this is missing some steps. I've set up a google cloud vm instance with a domain and installed nginx. What do I do with the eab and hvac keys google provides me prior to these steps, it seems so unclear. Also I don't have any file like .conf in the sites available directory like you have, it just says "default". Anyways I followed your steps anyway and it worked but now my site simply re-directs to Welcome to nginx "further configuration is required." I have no idea what to do now, I can't even access the website. Any help would be great. Thanks

  • @COOKANDSHINEINDIA
    @COOKANDSHINEINDIA 2 ปีที่แล้ว

    Superb work. Did same. And it is done. Thanks man 👍

  • @psicoplanner3330
    @psicoplanner3330 3 ปีที่แล้ว

    Your videos are great man! Thank you!

  • @ramakrishnanc8961
    @ramakrishnanc8961 3 ปีที่แล้ว +1

    Thank you very much. How do I set up auto-renewal of the SSL certificate?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      tonyteaches.tech/lets-encrypt-renew-cron/

  • @rafa_337
    @rafa_337 8 หลายเดือนก่อน

    thank you mate, this is all I wanted, you're the best!

    • @TonyTeachesTech
      @TonyTeachesTech  8 หลายเดือนก่อน

      Glad I could help! Thanks for watching, and subscribe for more!

  • @SayaMeals
    @SayaMeals 2 ปีที่แล้ว

    Hi Tony, can you do a video on how to renew the certificate?

  • @suren1987
    @suren1987 2 ปีที่แล้ว

    omg i remember when I wanted to get SSL on AWS it was way to complicated... this is so simple

  • @kishanpanchal5009
    @kishanpanchal5009 ปีที่แล้ว

    Nice music at the end can u share link as well good video anywy

  • @abishek.s1554
    @abishek.s1554 2 ปีที่แล้ว

    hey tony, is there any way to install ssl for an ip address, i.e I need the external ip to be secure when its accessed.

  • @NxInfinite
    @NxInfinite 4 ปีที่แล้ว

    Excellent! Keep it going!

  • @andrewsharapko
    @andrewsharapko ปีที่แล้ว

    Thank you! Very useful!

  • @shivakumarpanaganti258
    @shivakumarpanaganti258 4 ปีที่แล้ว

    Thanks for this video!
    I have installed wordpress using docker on GCP (ubuntu 16.04 LTS)⁶. The mail function isn't working in the docker image and I couldn't reset my password and I'm not receiving any notification mail from wordpress. I saw your video of smtp mail video. I have 2 queries regarding it:
    1. What are 'SMTP_USER', 'SMTP_PASS' variables and how 'SMTP_USER' is different from 'SMTP_FROM' variable?
    2. Will the approach should in that video work for a wordpress docker image? If not, what should I change?

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      Please see my other reply on your other comment th-cam.com/video/eTqrw3bgfUE/w-d-xo.html&lc=Ugw1MlsqKIyfXTAmpJF4AaABAg

  • @AbdulRehman-se6vn
    @AbdulRehman-se6vn 2 ปีที่แล้ว

    Very good explanation

  • @randeepdas6686
    @randeepdas6686 ปีที่แล้ว

    Your voice is too good

  • @pleuratpllana
    @pleuratpllana 3 ปีที่แล้ว

    Hi Tony,
    I am using an Apache server on my Wordpress website, but the commands won’t work for me despite replacing nginx->apache, it says: no such file or directory…
    Not sure what I am doing wrong, do you have any idea?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      It's usually in the apache2 directory

  • @bunglende3148
    @bunglende3148 3 ปีที่แล้ว

    again.. thanks A lot tony

  • @mmbhobbies
    @mmbhobbies 3 ปีที่แล้ว

    Hi Tony:
    I've copied the first command cat /etc/... replacing your domain with mine, but I get this error:
    cat: /etc/nginx/sites-available/mmbhobbies.tk.conf: No such file or directory.
    What am I doing (or did) wrong?
    Thanks & greets from Argentina.
    Marcelo.
    PS: You mentioned you installed WP on Ubuntu. How can I find out my server OS?. I used WP certified by Bitnami on Google Cloud.

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      Please look at what configuration files exist under /etc/nginx/sites-available and reference the appropriate one in your commands.
      A way that I know of how to determine your OS is the following command:
      uname -a

  • @raphaelinkiri1923
    @raphaelinkiri1923 3 ปีที่แล้ว

    Thank you very much! I need to use certbot with the same server but another name, how do I include another name? You for example have www and without www. I want to include a different name. DNS is already poiting to this server from both names.

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      You can run the certbot command again to install another cert

    • @raphaelinkiri1923
      @raphaelinkiri1923 3 ปีที่แล้ว

      @@TonyTeachesTech Tryed but can't add another domain cert. I need to add domain to my apache before, with another command?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@raphaelinkiri1923 Yes you'll need to either add or modify your Apache config files to first have a domain name at /etc/apache2/sites-available/

  • @KanojiaArt
    @KanojiaArt 2 ปีที่แล้ว

    Thanks buddy 😍

  • @ctrlwithmarty
    @ctrlwithmarty 3 ปีที่แล้ว

    Thanks Tony!!!

  • @superoriginalname
    @superoriginalname 2 ปีที่แล้ว

    ????I got locked out of my WP admin????? Help!!!!!!

  • @maxflick
    @maxflick 2 ปีที่แล้ว

    Great tutorials! How would I do this if I have a SSL Certificate from Google Domains and my Wordpress VM runs Debian GNU/Linux 10 (buster)
    ? :D Thanks in advance!

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      That would require you to manually install the SSL that you got GoDaddy. Closest tutorial that I have to that is this th-cam.com/video/99zyfMObC98/w-d-xo.html

  • @lakshyakaushik3873
    @lakshyakaushik3873 3 ปีที่แล้ว

    Hi, please tell me how do I delete this certificate as i am planning to buy godaddy ssl and how to delete cert bot

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      I'm curious why are are going with the paid SSL certificate and not the free one?
      To "delete", you'll have to modify the ngninx config file 3:33 (please see the output 'Deploying Certificate to VirtualHost ...')

  • @abhishekanand8334
    @abhishekanand8334 3 ปีที่แล้ว

    Thanks Tony. :D

  • @pablosalfate7614
    @pablosalfate7614 3 ปีที่แล้ว

    after installing the certificates, my site looks all scrambled, I think is not taking the CSS configuration, so I only see the plain text, any reason for that?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      This is most likely due to a mix of HTTP and HTTPS.
      First check in your WordPress admin dashboard under Settings > General that your Site Address and Site URL are using HTTPS.
      You can also watch this video to update HTTP references in the database th-cam.com/video/2bQTGFItwCA/w-d-xo.html

    • @pablosalfate7614
      @pablosalfate7614 3 ปีที่แล้ว

      @@TonyTeachesTech thanks mate, the redirection to https site made the trick, thanks

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@pablosalfate7614 Great!

  • @tanobatak8245
    @tanobatak8245 3 ปีที่แล้ว

    hi, how do i know my website is in apache or nginx? thanks

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      If you're using WordPress, you can go into your admin dashboard and go to Tools > Site Health > Info > Server

  • @pablue
    @pablue 3 ปีที่แล้ว

    Mais uma vez grato por este tutorial direto ao ponto e com um conteúdo 100% funcional.

  • @alejandroulises7293
    @alejandroulises7293 3 ปีที่แล้ว

    Hi Tony! thank you for your tutorial. Unfortunately the console shows an error while I am executing the last step. Any idea why? thank you in advance.
    nginx: [error] invalid PID number "" in "/run/nginx.pid"
    Cleaning up challenges
    nginx: [error] invalid PID number "" in "/run/nginx.pid"
    Encountered exception during recovery:
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 75, in handle_authorizations
    resp = self._solve_challenges(aauthzrs)
    File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 139, in _solve_challenges
    resp = self.auth.perform(all_achalls)
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1071, in perform
    self.restart()
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart
    nginx_restart(self.conf('ctl'), self.nginx_conf)
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart
    "nginx restart failed:
    %s
    %s" % (out.read(), err.read()))
    certbot.errors.MisconfigurationError: nginx restart failed:
    b''
    b''
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/certbot/error_handler.py", line 108, in _call_registered
    self.funcs[-1]()
    File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 323, in _cleanup_challenges
    self.auth.cleanup(achalls)
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1090, in cleanup
    self.restart()
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart
    nginx_restart(self.conf('ctl'), self.nginx_conf)
    File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart
    "nginx restart failed:
    %s
    %s" % (out.read(), err.read()))
    certbot.errors.MisconfigurationError: nginx restart failed:

  • @وسيمالبوحميدي
    @وسيمالبوحميدي 4 ปีที่แล้ว

    Hey! I love your amazing tutorials. Make a video about how to host a php website with database in google cloud platform

  • @staraag
    @staraag 2 ปีที่แล้ว

    Showing 403 Forbidden error on webpage and wp-admin page.
    My configuration on google cloud kindly advice.
    Software
    Operating system
    Debian (10.12)
    Software
    Apache2 (2.4.38)
    Google-Fluentd (1.9.7)
    MySQL-Client (5.7.38)
    MySQL-Server (5.7.38)
    PHP (7.4.29)
    Stackdriver-Agent (6.1.4)
    WP-CLI (2.6.0)
    WordPress (5.9.3)
    phpMyAdmin (5.0.2)

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      Check out this vid for how to possibly fix th-cam.com/video/01T5JJGW4_c/w-d-xo.html

  • @miffyhkges8608
    @miffyhkges8608 3 ปีที่แล้ว

    if i want to set SSL for my subdomain, how can I do?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      You can specify the subdomain in the same way as this example

  • @jasonnwakaeze1683
    @jasonnwakaeze1683 3 ปีที่แล้ว

    If you still reply, how do we install .crt files?

  • @sandunmeesara
    @sandunmeesara 10 หลายเดือนก่อน

    Thanks bro❤

    • @TonyTeachesTech
      @TonyTeachesTech  9 หลายเดือนก่อน

      You're welcome! Subscribe for more :)

  • @davidvishwakarma8447
    @davidvishwakarma8447 3 ปีที่แล้ว

    After running those command get error on my website

  • @MauricioDanzas
    @MauricioDanzas 3 ปีที่แล้ว +1

    Hi Tony, greetings from Brazil. This method still working?

  • @snmh76
    @snmh76 2 ปีที่แล้ว

    Hi Tony, is this will work to renew the expired ssl certificate?

  • @cokaktheone
    @cokaktheone 3 ปีที่แล้ว

    It can be use for Apache server??

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Yep! Just change nginx to apache in the commands

  • @ChrisBecher
    @ChrisBecher 3 ปีที่แล้ว

    amazing thank you so much

  • @Andy-si1pl
    @Andy-si1pl 8 หลายเดือนก่อน

    Windows IIS developers: "wheres the GUI"

  • @oxfordepi6303
    @oxfordepi6303 4 ปีที่แล้ว

    hey, I installed ssl but then can't access my site. I get the error message 'This page isn’t workingwww.diselinix.com redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS. I cleared my cookies, still the same issue. How can I resolve this?

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +1

      I'm not sure, but Kinsta has a pretty in-depth article on this topic kinsta.com/blog/err_too_many_redirects/

  • @elmarzougui
    @elmarzougui 4 ปีที่แล้ว

    Great work

  • @shyamkarthik.k
    @shyamkarthik.k 2 ปีที่แล้ว

    Life saver!

  • @doniyusdinar
    @doniyusdinar 3 ปีที่แล้ว

    thank you

  • @yousefalmetkobis4752
    @yousefalmetkobis4752 3 ปีที่แล้ว

    Can you send me the codes that i should write please .. thanks for awesome content

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Here is a link to code snippets certbot.eff.org/lets-encrypt/ubuntufocal-nginx

  • @AnkitTrickerET
    @AnkitTrickerET 3 ปีที่แล้ว

    is it lifetime free or 1 year only?

  • @davidvishwakarma8447
    @davidvishwakarma8447 3 ปีที่แล้ว

    Now What I do

  • @Red.exe7
    @Red.exe7 3 ปีที่แล้ว

    Thank you