Install Cloudflare SSLs That Don't Expire for (up to) 15 YEARS!!

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 103

  • @marianosilva2030
    @marianosilva2030 2 роки тому +5

    GENIOUS! The best solution I've came accross to this COMMON issue! Thanks dude!

  • @phychmasher
    @phychmasher Рік тому +1

    It looks like these days you can still do the exact same thing, but instead of Cloudflare renewing your cert every 1 year, they do it every 3 months...which is what happens when you just use NPM and Let's Encrypt in the standard way. It's nice to just have the one wildcard cert, though.
    By the way, this was a fantastic video, and you really did a great job thoroughly explaining how to do this in a way that is easy to follow, even though Cloudflare changed their UI substantially.

  • @Farizno
    @Farizno 3 роки тому +3

    Thanks for another great tutorial. I've created a custom 15-year cert and applied it! 👍

  • @tchesnokovn
    @tchesnokovn Рік тому +1

    I get this error: upload failed:Certificate key is not valid.

    • @DBTechYT
      @DBTechYT  Рік тому

      Did you mix up your pem and key files?

  • @yesimwilliam
    @yesimwilliam 2 роки тому

    Oh thank you so much. I've been going crazy getting internal errors trying to install ssl through nginx. This was so simple.

  • @vba77
    @vba77 2 роки тому

    Thanks, completely changed from Let's Encrypt to CF certs to my setup. Works like a charm 🍻

  • @AlkoSeltzer
    @AlkoSeltzer 4 місяці тому

    Спасибо, дядька! Я 4 часа промучался! Просто тупанул на ровном месте! Случайно нашел на реддите ссылку на это видео. На Unraid в NPMPlus удалось это сделать тоже! Просто проверил все как у вас, поправил в настройках DNS CF защиту (включил) и все заработало!
    Это все от невнимательности и недостатка знания. Ещё раз спасибо вам!

    • @DBTechYT
      @DBTechYT  4 місяці тому

      Я очень рад, что это видео оказалось для вас полезным!

  • @randallroach
    @randallroach 3 роки тому +1

    moving from lots of letsencrypt certs to a single free CF 15-year cert is not a bad way to start the day :)

  • @mikaelandersson890
    @mikaelandersson890 2 роки тому

    Legend! i wanted to host my own server and your videos have helped out so much, new server up and running! thank you!

    • @DBTechYT
      @DBTechYT  2 роки тому

      Glad I could help!

  • @Snoekverslaafde
    @Snoekverslaafde Рік тому

    Does not work for me.coudflare keeps saying Connection timed out Error code 522

  • @baseptr
    @baseptr 3 місяці тому

    I just followed the instruction in the video and my Chrome says "Your connection is not private". Because the SSL certificate generated by Cloudflare for 15 years is not trusted :) This cannot be a replacement for the LetsEncrypt for me. In the video you said proxied or not doesn't matter but actually it does. When you enabled proxy, CF's trusted certificate generated for a year will be used automatically for your domain. If you disable it, NPM will use your custom certificate instead and you will get the untrusted certificate warning from the browser.

  • @CatDadTheCyborg
    @CatDadTheCyborg 9 місяців тому

    Hi friends! I need help and I've tried the forums. Maybe someone can help me here?
    My problem: I have the 15 year cert. It's in my npm. It has a wildcard support. I still can't get my www site to load. Or my vtt for my virtual tabletop games. Both work perfectly fine with the letsencrypt individual ssl but as soon as I use the cloud flare DNS challenge it seems to screw them up...I don't honestly know what I'm doing with networking, I've just found the right combination of programs and code that seems to display my websites as needed, lol. I currently have a proxmox ha cluster with npm cycling to whatever machine it needs to be on. When it catches traffic from my router to its static IP, it passes the traffic through to the server, which then says there's an SSL error. Tells me my cert from cloud flare, that I can inspect, and comes from cloud flare, is certainly self signed...

  • @Jeff-e5h2e
    @Jeff-e5h2e 3 місяці тому

    Wrote out a whole comment on how to do this for Plesk, don't know if it stuck. (of course not, right?)
    ....
    Just make sure before if youre doing this for Plesk you add both cert and key to the same file in NOTEPAD++ (not normal notepad, incase it forces it to be a text file) and save that as a .pem with file type from the menu being "All Files". Add then key to Plesk by clicking on SSL on your domain's dashboard (sort of like how you would if you were gonna add Let's Encrypt cert) but choose the middle options to upload a .pem file. Upload it and you should have basic working SSL.
    TLDR: add both the cert and key to the same .pem file when uploading to Plesk

    • @DBTechYT
      @DBTechYT  3 місяці тому

      On Windows you can enable "show file extensions" and then delete the .txt from the file name and have the same end result.

  • @evankirschenmann4653
    @evankirschenmann4653 Рік тому

    I was looking to use this for my Fortigate Firewall to configure HTTPS for administrative access. Their setup requires that I create a .CER file for import rather than having a separate .key and .pem file. This sadly didn't work for me the way that you showed it as a result. However, the video was awesome and I think it was super helpful. Thank you. I think I'll research how to do the conversion from these file formats to .CER and see if it works for me.

  • @adamyork2333
    @adamyork2333 3 роки тому +2

    Awesome! And thank you!

  • @iamaliarab
    @iamaliarab Рік тому

    Hey man! This was really helpful. Thank you so much. ❤❤❤

  • @sonicalstudios
    @sonicalstudios 2 роки тому

    Amazing work mate, Perfect

    • @DBTechYT
      @DBTechYT  2 роки тому

      Thank you! Cheers!

  • @Voigt_Analytics
    @Voigt_Analytics 7 місяців тому

    The disadvantage is that this does not work for the MX server. It would damage the reputation of the domain if it were to be associated with Cloudflare's IP addresses. MX is a very sensitive topic. From a data protection point of view, this is also questionable, as a supposedly encrypted TLS/SSL connection would be broken open again with a certificate from Cloudflare, personal telecommunications data would be processed in the USA or elsewhere and you would end up in a lot of trouble.

  • @itsathejoey
    @itsathejoey 2 роки тому

    This worked great! Thanks for the tip.

  • @EpicTeddy101
    @EpicTeddy101 2 роки тому

    For some reason when I get it all setup, I get an Error 522: Connection timed out. I have ports 80 and 443 port forwarded through my router and also allowed through my firewall. I've also followed the additional troubleshooting provided but still no success. I've also tried this with multiple services and have had not any luck. Any ideas?

  • @MyAeroMove
    @MyAeroMove 2 роки тому

    This goes to origin cert only, so no external exposure. Most of the providers will allow you to use self-provisioned ones and you can make them last even longer.
    Still can't see the benefit in this use case.

    • @DBTechYT
      @DBTechYT  2 роки тому +1

      This is a great way to have a cert in your NGINX proxy manager reverse proxy to connect to the domain in CloudFlare's DNS and not have to deal with possible Let's Encrypt SSL issues when proxying a domain in CloudFlare

  • @jchene2
    @jchene2 7 місяців тому

    Thanks for the video. It was very helpful.😀

  • @selvin9845
    @selvin9845 Рік тому

    Ok so, how do I do this for my Apache2 Web server virtual hosts websites??

  • @okanerdem
    @okanerdem 3 роки тому +1

    Looks like "Web Socket button is important" because if we dont select it then we are see certificate is not valid warning

    • @DBTechYT
      @DBTechYT  3 роки тому

      I only use websocket on certain apps that need it.

    • @okanerdem
      @okanerdem 3 роки тому

      Yeah but for examle i try to use cloudflare certificate for wordpress website, if web socket is not opened then i see ssl trust error. What’s the websocket and why needed? Looks like İt’s needed for wordpress because if i did not select then ssl is not working

  • @lazaruspr23
    @lazaruspr23 3 роки тому

    Interesting that I get a certificate that is from R3 lets encrypt and not cloudflare on one of my domains, works on others. Very strange, any ideas?

  • @samsondawit4302
    @samsondawit4302 Рік тому

    I am trying to use nginx with cloudflare and every time I change the HTTPS Port to other than the default 443 to something like 4433 it doesn't work. it only works on the default 443 port. Is there a solution for this

    • @DBTechYT
      @DBTechYT  Рік тому

      If you're going to change the ports to 4443, then your port line should look like this:
      - 4443:443

  • @iocircuits
    @iocircuits Рік тому

    why not cloudflare tunnel, reviser proxy is better ?

  • @anonfren6934
    @anonfren6934 3 роки тому

    In npm when creating a proxy host there the "scheme option" if i set it to https cloudflare stops connecting. It works if i set it to http. I have my ssl cert installed and set to force https. Will setting the scheme to http affect the ssl and security?

  • @MrKalindro
    @MrKalindro Рік тому

    Not sure if something changed, but when I do exactly this, it says my certificate is invalid, altough in the certificate tab in chrome it looks normal. And it says expiry is in 15 years, not 1 year like in the vid

    • @DBTechYT
      @DBTechYT  Рік тому

      You may need to wait for things to propagate

  • @LeytonSystems
    @LeytonSystems 2 роки тому +1

    Does this method still works? I am not getting the browser to accept the SSL Cert of 15 years and get a warning everytime. Yes, I have nginx proxy manager and have followed this tutorial by the letter. Thanks for any feedback.

    • @DBTechYT
      @DBTechYT  2 роки тому

      It should. I've stopped using Nginx Proxy Manager and have just switched to CloudFlare tunnels for my remote access needs.

  • @bunorr
    @bunorr Рік тому

    I tried using kemp and not worked :(

  • @antoniorobles998
    @antoniorobles998 3 роки тому +1

    Hi David! great video!. I have followed the step one by one, but when I click save in add custum certificate, I see this error " Key files protected with a passphrase are not supported". Any ideas? thanks

    • @DBTechYT
      @DBTechYT  3 роки тому

      Why is your file password protected? I've never expereinced that.

    • @antoniorobles998
      @antoniorobles998 3 роки тому

      @@DBTechYT dont know, when I upload mi pem and my .ley file to nginx custom certificate and click save, this message show up.

    • @0xsh1v4
      @0xsh1v4 3 роки тому

      @@antoniorobles998 did you finnd the solution to this issue?

  • @anirudhya_g
    @anirudhya_g 3 роки тому

    I followed the video but it still stays not secure and in the certificate it says windows does not have enough information to verify this certificate

    • @okanerdem
      @okanerdem 3 роки тому

      Please try to open websocket support button on your host

  • @winecountrygames1859
    @winecountrygames1859 2 роки тому

    I get internal error with lets encrypt and Secure Connection Failed with cloudflares ssl. What am I doing wrong?

    • @DBTechYT
      @DBTechYT  2 роки тому

      You pick one or the other. If you use CloudFlare SSLs, don't use Let's Encrypt.

    • @winecountrygames1859
      @winecountrygames1859 2 роки тому

      @@DBTechYT I am aware I was trying both neither one was working. Luckily someone on your discord was gracious enough to help me and all is working now. My only issue now is no matter what I try I cannot get any of the proxy hosts to work on my cell data. 4G/5G every single person Ive asked to try including your discord user had the same error. SSL handshake failed. Do you have any ideas on this? Thanks for your awesome videos :D

  • @iJoeCo
    @iJoeCo 2 роки тому

    Does the origin server certificate you generated on cloudflare renew automatically on nginx proxy manager or do you have to manually go through the steps you outlined in the video if you happen to remember after 15 years? Lol. Great video, I’m digging through this stuff recently and this helps!

  • @suvroghosh2725
    @suvroghosh2725 Рік тому

    Origin certificate vs using Edge certificate for proxy manager with DNS challenge?

  • @y0n6u
    @y0n6u 3 роки тому

    why would you use the same SSL certficate for 15 years, when you can automate the renewal using swag?

    • @DBTechYT
      @DBTechYT  3 роки тому

      I wouldn't advise using a 15 year SSL. This video just shows that you can create SSLs UP TO 15 years. Also, I don't use Swag. I prefer NGINX Proxy Manager.

  • @yomajo
    @yomajo Рік тому

    Im newb in devops. What the hell is proxy manager? Would there be a problem having cloudflare in front of VPS and having nginx setup to use these .pem and .key files by Cloudflare?

    • @DBTechYT
      @DBTechYT  Рік тому

      A proxy manager routes traffic on your server. Basically, ALL of your incoming internet traffic gets pointed to a reverse proxy. Then you configure your different domains and subdomains in the reverse proxy and it handles the routing of the traffic for you. If you didn't want to open ports 80 and 443 on your network, you could just use CloudFlare tunnels and eliminate the need for a reverse proxy entirely: ua-cam.com/video/Q5dG8g4-Sx0/v-deo.html

    • @yomajo
      @yomajo Рік тому

      ​ @DBTechYT Will watch video, thanks! Will be deploying my first VPS soon, lots of questions still :)

  • @fbifido2
    @fbifido2 3 роки тому

    Do you know of any IT/pc-parts inventory web interface application in docker ????

    • @DBTechYT
      @DBTechYT  3 роки тому +1

      I think Snipe-It may be what you're looking for: hub.docker.com/r/linuxserver/snipe-it

  • @myozone
    @myozone 2 роки тому

    Hello, Is there a way to firewall off everything apart from CloudFlare's IP's ? because your public direct IP is still open. Come to that, is there a easy to firewall for Docker/Portainer ? I've found UFW but it's ok but fiddly to use by the look of it. I've just come across Ajenti which has a firewall plugin I believe.

    • @DBTechYT
      @DBTechYT  2 роки тому

      You don't want to do that. It'll prevent the rest of your internet from working properly

    • @myozone
      @myozone 2 роки тому

      @@DBTechYT Ah ok, I was thinking of just allowing Cloudflare's IP's into NPM and block everything else going directly via it's public IP. I more or less do the same thing here on my proxmox server and allow only CF's IPs into 80 and 443 - (I use Pfsense) It seems to work ok and blocks my public IP into it. Other wise I can access the NPM 'working ok' page on port 80 if I connect on my public ip, I used Opera's VPN to test.

  • @abdelalihamza8979
    @abdelalihamza8979 Рік тому

    Hello , thank you for ur video , im using a normal certificate in my server , and i use also cloudflare , so i can remove this normal certificate and use cloudflare's and everything will work without even generating another certification on my local server ?

  • @deboy69
    @deboy69 3 роки тому

    Do you just reuse the same key/pem for each proxied host? Than just rename the certificate with a different name? Or do you create a new original cert for each proxy host?

    • @DBTechYT
      @DBTechYT  3 роки тому +1

      You only need to do this for each domain. This will let you install ONE cert/pem file for all your subdomains on a single domain. The *.yourdomain.com and yourdomain.com covers any subdomain for the root domain.

  • @winecountrygames1859
    @winecountrygames1859 2 роки тому

    Im new to all this. My question is can I create one key and pem file and use it for every cname domain or do I need to generate a new one for each cname doman?

  • @Alaskafunman
    @Alaskafunman Рік тому

    Thank you this helped me lot

  • @ETHIOTECHJ
    @ETHIOTECHJ 3 роки тому

    First comment 😘😘 thanks

  • @okanerdem
    @okanerdem 3 роки тому

    As i remember, apple devices can allow max 365 days for certificates am i right?

    • @DBTechYT
      @DBTechYT  3 роки тому +4

      I have no idea. I only have 1 apple device in my house and it hasn't been charged in more than a year

  • @juliopinillos6934
    @juliopinillos6934 3 роки тому +1

    Like ever great useful and easy to implement in our Nas
    Thanks from Spain

    • @DBTechYT
      @DBTechYT  3 роки тому +1

      Glad it was helpful!

  • @umarjamil8512
    @umarjamil8512 3 роки тому

    I tried it but did not work for me . it say certificate authority not valid . did you import any certificate into your browser ?

    • @DBTechYT
      @DBTechYT  3 роки тому

      I didn't import anything other than what you saw in the video. Others have reported good results, so I'm guessing maybe you missed something along the way. Did you maybe mislable the .key and .pem files?

    • @umarjamil8512
      @umarjamil8512 3 роки тому

      @@DBTechYT i got this error : SEC_ERROR_UNKNOWN-ISSUER. Thanks. I will try it again on fresh install.

    • @okanerdem
      @okanerdem 3 роки тому +1

      @@umarjamil8512 Try to open Web Socket support on your host

    • @umarjamil8512
      @umarjamil8512 3 роки тому +2

      @@okanerdem Bro fixed it . on cloudflare your records should be on proxy not dns. That fix my issue.

    • @okanerdem
      @okanerdem 3 роки тому

      @@umarjamil8512 Thx for the information. I'll try. Just changed like proxy right?

  • @yusun3346
    @yusun3346 3 роки тому

    Thanks David, excellent video. But do you happen to know why I got 526 error(ssl certificate didn’t pass validation.) if I put dns mode to Full(strict)? Thanks in advance

    • @yusun3346
      @yusun3346 3 роки тому

      FYI: I have a FireWall setup as DMZ on router, do you think this might be the issue?

  • @pirateben
    @pirateben 3 роки тому

    it took me a second to figure out what you meant by it dont matter if you us proxy or not then i was like o ya you had to turn it off when doing the other way but really you still want it to be on

  • @peixinhoEI
    @peixinhoEI 3 роки тому

    Thanks! Excellent video, I made everthing like you said but i'm getting the 522 error (connection timeout) but I can access with IP Address but now with domain... Can you help me?

    • @DBTechYT
      @DBTechYT  3 роки тому

      Do you have ports 80 and 443 forwarded to your NGINX Proxy Manager?

    • @peixinhoEI
      @peixinhoEI 3 роки тому

      @@DBTechYT ahh ok i forgot that! I have to do that in my router right? In my router I have Local and External and both with Start Port and End Port. So I have to point the IP of NGINX to port 80 and port 443?

    • @DBTechYT
      @DBTechYT  3 роки тому

      Sooo... If you have a modem/router combo, you should be able to login there and forward those ports to your NGINX server IP. If you have a separate modem and router, you'll have to forward those ports from your modem to your router and THEN from your router to your NGINX server.

    • @peixinhoEI
      @peixinhoEI 3 роки тому

      @@DBTechYT I have modern modem/router but I don't understand I foward port 80 and 443 to what port? Sorry for the question i'm a beginner :P

    • @DBTechYT
      @DBTechYT  3 роки тому

      You don't forward it to a port. You forward it to an IP address. Google "port forwarding on "

  • @crazycorg1
    @crazycorg1 3 роки тому

    I thought this only encrypted cloud flare to server (not to the browser)

    • @DBTechYT
      @DBTechYT  3 роки тому +1

      Installing an SSL on your server encrypts the data between your server and CloudFlare. Then CloudFlare has an internet-side setup that encrypts the traffic to the rest of the world.

  • @JuanMarquezVerified
    @JuanMarquezVerified Рік тому

    I get error 526 when I do this

    • @DBTechYT
      @DBTechYT  Рік тому

      As I've told others over the past few years, please watch this video and then get back to me: ua-cam.com/video/2mdoHQlZu8M/v-deo.html

  • @MRPtech
    @MRPtech 3 роки тому +1

    Wait WAHT ?
    15 YEARS ?
    My Raspberry Pi will die sooner then SSL expires LOL :)

    • @DBTechYT
      @DBTechYT  3 роки тому

      LOL yeah. I didn't say it was a good idea, just that you COULD do if if you wanted

  • @netto_info
    @netto_info 11 місяців тому

    Thank you!