Setup Https on Digital Ocean Ubuntu Server (Nginx and Certbot)

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Free website building course with Django & Python:
    bit.ly/2XnPMv1
    Digital Ocean Hosting Playlist: bit.ly/2YwvReF
    Digital Ocean sign-up (hosting): bit.ly/2XoXCVk
    Namecheap sign-up (get a domain name): bit.ly/2FQCzFb
    In this video I show you how to setup https using Nginx and a certbot on a digital ocean server. The digital ocean droplet is hosting a django website that I built in a free course on my website.
    I take you through:
    1) Installing a Certbot
    2) Confirming Nginx is configured correctly
    3) Allowing HTTPS through the firewall
    4) Obtaining an SSL certificate
    5) Vertifying certbot auto-renewal
    codingwithmitc...
    Instagram: / codingwithmitch

Комментарии • 59

  • @buzzminkyunghoon3856
    @buzzminkyunghoon3856 5 лет назад +10

    I love how complete this series is getting.

  • @samiam.402
    @samiam.402 Год назад +1

    Brooooooo, this is absolute gold!!!! I know it's all there in the Digital Ocean article, but having someone explain and walkthrough is worth every since second. Thanks!

  • @mrmuranga
    @mrmuranga 4 года назад +1

    Great course, done over 3 production sites serving an API and 2 websites successfully..Thanks Mitch.

  • @danielnolan320
    @danielnolan320 3 года назад +1

    Amazing! I could never have done this on my own and yet you made it so easy. Thank you so much

  • @muammarroshid2531
    @muammarroshid2531 3 года назад

    I love how complete this series is getting (2)

  • @satyasashi5859
    @satyasashi5859 3 года назад +1

    You are savior! Amazing series!

  • @sailendrachettri8521
    @sailendrachettri8521 4 года назад +1

    Thank You, Sir.
    Lots of love from India. ;)

  • @franciscobrunodias7526
    @franciscobrunodias7526 3 года назад

    OMG it worked so well and so fast I already had a secure site before I could notice, thanks!!!

  • @reltex1550
    @reltex1550 2 года назад

    Everything worked perfectly. Thank you so much!!

  • @sentinel_bear
    @sentinel_bear Год назад

    You are just insane.
    Thank you so much bro!

  • @Yalchin403
    @Yalchin403 3 года назад +1

    Really helpful video, I'm just commenting for you if you read this, you can surely watch this video, worked for me on digital ocean. Thanks

  • @hisatnam
    @hisatnam 4 года назад +3

    I am not very expert in these things... but somehow I managed and installed SSL on my site. Thanks for sharing this.
    Can we use CSR in this process?

  • @mikemakilan8294
    @mikemakilan8294 3 года назад

    Thanks! You are a big help! Very clear and simple

  • @kiambojyms2196
    @kiambojyms2196 3 года назад

    Hey I had the issue where https was not working. I solved it. I first checked the firewall status using sudo ufw status and noted 443 was not available. So I enabled it in the firewall by using sudo ufw allow 443 and everything worked. Thanks for the wonderful video.

  • @yohannesephrem9096
    @yohannesephrem9096 4 года назад +1

    Great video Mitch. Currently I'm digging a way to acquire a valid certificate for a domain which can only be accessed with in the company infrastructure or intranet. I know there is a way Letsencrypt issue a certificate for a wildcard domain through a DNS challenge. I need a help in doing it properly so that I can get a valid certificate for a BigBluButton installation that I need to deploy with in a company.

  • @hasibulhasansiju
    @hasibulhasansiju 3 года назад

    Great. Thank you so much. Worked perfectly

  • @DamienPictures
    @DamienPictures 3 года назад

    It worked. Thank you.

  • @Singh150
    @Singh150 4 года назад

    quick and easy. thanks!

  • @tommasodemarco7103
    @tommasodemarco7103 3 года назад

    Great tutorial! What's that thing about DigitalOcean spaces for static files? I have a couple of Django projects (mainly REST APIs) on a DigitalOcean droplet and I am able to load static files through the Django admin area... So why would I need DigitalOcean Spaces?

  • @marquezdrums
    @marquezdrums 4 года назад +1

    Could you or someone do a tutorial on how to get this running in a docker container? The docs look pretty confusing on Digital Ocean and I'm getting port 80 in use errors when building my container using nginx to serve static files.

  • @tringuyenminh6722
    @tringuyenminh6722 3 года назад

    Perfect one, thank you ^

  • @mrmuranga
    @mrmuranga 4 года назад +1

    Thanks. This was clear and simple.
    I run into problems after this process i could't access my site using mysite url either www.mysite.com or mysite.com. i was getting the message below :
    Welcome to nginx!
    If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
    For online documentation and support please refer to nginx.org.
    Commercial support is available at nginx.com.
    Thank you for using nginx.
    However i had to restart the entire process by uninstalling nginx and certbot from ubuntu..then restarting afresh with the nginx configurations and then install the lets encrpyt certificate.
    I highly recommend you wait for (maybe 5 mins) or like in my case (3 hours) before the domain propagation had to take place....
    Don't start the lets encrpyt process when you can't access your website yet without the SSL...so if you can't access www.mysite.com or mysite.com then wait until when you can then you can pick the SSL installation from there.
    Thks

  • @henrycodingstack6952
    @henrycodingstack6952 3 года назад

    I love your series, i decide to it out on a project everything work well but i can login to my admin site i keep getting this error attempt to access a readonly database and the admin css not working also any help will be appreciated

  • @AgoraphobicNews
    @AgoraphobicNews 4 года назад +1

    Hey! I installed the certificate and in the end when I try to type https I get 404 error. What should I do?

  • @webgooniedotcom
    @webgooniedotcom 3 года назад

    Bro you put me in the right direction however when noticing that the certbot wrote files into the .conf files it rearranged 80 and 443 hierarchy.

  • @rmirzamurod
    @rmirzamurod Год назад +1

    nmala dp aljravotla chunomiyoma ooo shett

  • @useruser-bv1ej
    @useruser-bv1ej 4 года назад +2

    videos with barely understandable audio from india without enough explanation: 800 000 views
    Great video with great audio and even greater explanation: 6500 views
    Seems like most people don't recognize quality

  • @ShubhamKumar-qv6py
    @ShubhamKumar-qv6py 4 года назад

    Awesome content. I have one doubt that is I want to redirect all my www. to non www. requests.
    Could this be possible?
    Thanks in advance.

  • @nanunjj1740
    @nanunjj1740 4 года назад

    thank you. it's work

  • @HishamHikami
    @HishamHikami 3 месяца назад

    now getting the certificate for ngnix, django got easier.

  • @bhupeshsrivastava3454
    @bhupeshsrivastava3454 4 года назад

    Can you help to make a video for ssl installations for digitalocean + azuracast droplet. Thanks in advance.

  • @shokhrukhabduahadov3985
    @shokhrukhabduahadov3985 4 года назад

    Please, when u r recording, make sure the position your are typing is not at the bottom of the screen. when u pause the video. code is invisible

  • @shydrate9835
    @shydrate9835 4 года назад

    Hi Mitch, I have installed ssl for my server, but itsn't reflecting in the url

  • @prabhudevbm2921
    @prabhudevbm2921 Год назад

    thanks

  • @stylishhughes
    @stylishhughes 5 лет назад

    which terminal software are you using?

  • @5Gamingx
    @5Gamingx 4 года назад

    Thanks Dude

  • @arrezbrayan
    @arrezbrayan Год назад

    I got everything to work but http won't redirect to https

  • @rexondmello5234
    @rexondmello5234 4 года назад

    Hi i dint get any file as /etc/nginx/sites-available/example.com.
    i have only a prnt.sc/tjjwxx. what should i do?

  • @PepeTostado
    @PepeTostado 2 года назад

    How Do i setuo a firewall

  • @mahimathwale3918
    @mahimathwale3918 4 года назад

    I want to configure only in nginx and I want traffic should redirect from http to https please do suggest

  • @mykalimba
    @mykalimba 4 года назад

    Isn't the auto-renew automatically set up on the initial cert installation? I didn't think is was necessary to do the "dry run" part to get auto-renew running.

    • @mykalimba
      @mykalimba 4 года назад

      Yeah, I just checked the D.O. documentation and it states this at Step 5:
      "Let’s Encrypt’s certificates are only valid for ninety days. This is to encourage users to automate their certificate renewal process. *_The certbot package we installed takes care of this for us by adding a renew script to /etc/cron.d. This script runs twice a day and will automatically renew any certificate that’s within thirty days of expiration._*" (Emphasis mine.)
      So, the auto-renew is already set up when you initially install the cert. (Maybe it wasn't like this when you originally posted this video.)

  • @stylishhughes
    @stylishhughes 5 лет назад

    what is the link to the documentation?

  • @Waliente
    @Waliente 5 лет назад

    Hi Mitch can you write me there the link to the digital ocean article? Thank you.

  • @marshchawki1912
    @marshchawki1912 4 года назад

    thanks, friend

  • @pauliixsantamaria
    @pauliixsantamaria 4 года назад

    Not working on EC2

  • @dannycastano4282
    @dannycastano4282 4 года назад

    very first command doesn't work, this is the error I get, I'm using ubuntu 18.04 nginx: add-apt-repository ppa:cerbot/cerbot
    Cannot add PPA: 'ppa:~cerbot/ubuntu/cerbot'.

    • @mykalimba
      @mykalimba 4 года назад +1

      Should be "certbot", not "cerbot".

  • @nayz-
    @nayz- 4 года назад

    Don't do 'sudo ufw delete allow '443/tcp', this just literally blocked me out of my instance via SSH.

  • @asktoeic3869
    @asktoeic3869 2 года назад

    Everything worked perfectly. Thank you so much!!