How to create a valid self signed SSL Certificate?

Sdílet
Vložit
  • čas přidán 29. 04. 2024
  • In this video, I will explain how to generate valid self-signed SSL certificates for your internal network. We will use an open-source tool, OpenSSL to create an SSL cert for my Proxmox Server, that is valid for my internal domain and my private IP address. #OpenSSL #TLS #HomeLab
    My GitHub Cheat-Sheets: github.com/christianlempa/che...
    Teleport-*: goteleport.com/thedigitallife
    Follow me:
    TWITTER: / christianlempa
    INSTAGRAM: / christianlempa
    DISCORD: / discord
    GITHUB: github.com/christianlempa
    PATREON: / christianlempa
    MY EQUIPMENT: kit.co/christianlempa
    Timestamps:
    00:00 - Introduction
    00:51 - Some TLS basics
    04:33 - What are valid SSL Certificates?
    07:45 - Why use Self Signed Certificates
    11:53 - Advertisement-*
    12:27 - Generate a Private CA
    16:31 - Generate and Sign an SSL Cert
    21:11 - Upload a Full chain Cert
    22:22 - Import Private CA in Windows
    ________________
    All links with "*" are affiliate links.

Komentáře • 486

  • @RayDeMoss
    @RayDeMoss Před 2 lety +66

    Thank you very much. This was extremely useful. You took a very confusing and convoluted process and made it as easy to understand as possible. I was able to setup certs on several home servers that I've been trying to figure out for years. I really appreciate your time making this video. Very helpful.

  • @charleseaster3518
    @charleseaster3518 Před 3 měsíci +2

    Hi Christian, I have been watching your videos for ages and with your help I have grown my little raspberry pi "home lab" out into 3 separate servers running more services than I have any business or need to run. I enjoyed this video and it was very informative. Thank you for all the help and wish me luck setting up my own CA.

  • @RandomAlias1
    @RandomAlias1 Před rokem +3

    Hands down, absolutely outstanding work. Thank you so much for this video. I absolutely loved it. You earned a sub!

  • @pedrobarone4786
    @pedrobarone4786 Před 10 hodinami

    I've been trying this for weeks, and you managed to make me understand and actually learn something about certificates. Indeed, you are an excelent teacher! Thanks a lot

  • @cyn1x
    @cyn1x Před 2 lety +3

    You really know your stuff. So much information in 25 minutes!

  • @SomeGuyFromFlorida
    @SomeGuyFromFlorida Před rokem +3

    Might be the most important video I've watched in 5 years, wow. Thanks SO much for this, very well done!

  • @kanylekrigeren
    @kanylekrigeren Před rokem +3

    This was exactly what I needed to understand the cert-creation process. Thank you, and I have now subscribed to your channel :D

  • @nirvanah641
    @nirvanah641 Před rokem

    Thanks a million! I was following some other documented tutorials and none of them seem to explain what is important and what is not. I didn't have a DNS name so I had to rely on IP addresses. After spending 2 days of trying to setup SSL certificates, I finally found and followed your video and it just worked straight away!

  • @LordDemonos
    @LordDemonos Před 2 měsíci +1

    I subscribed last week, mostly because I'm into Docker and you seem to cover it a lot. You've already proven to be quite useful with this tutorial, which I ran into completely by coincidence. Just wanted to say I really appreciate you, thanks!

  • @fabiena1787
    @fabiena1787 Před rokem +3

    Thank you so much. I had been annoyed by this for a long time. I appreciated very much your way of explaining things with just the level of details needed (at least in my case). I could follow the steps one after the other and it worked fine. I wrote down the process to repeat this in the future. Thank you so much again, from France.

  • @johns7278
    @johns7278 Před rokem

    Thanks so much for this video. It really helped me a lot. For a long time I was having problems with other tutorials tying to configure this, and with your video I managed to get everything working really fast. Thanks again!

  • @TinkerTech
    @TinkerTech Před 2 lety

    just started to dip my toes into self signing so this is wonderful timing that you to made a fresh video about it.
    🤗

  • @peculiar6392
    @peculiar6392 Před rokem +3

    Nice overview about CA's and how Windows trust certificates from websites. And well detailed explanation about the steps to generate a valid certificate. It really comes in handy to me right know, because I was dealing with some troubles to generate a certificate to a local system in my job. Thank you very much! Keep it up! 👏👏👏

  • @photoshop-requests
    @photoshop-requests Před rokem

    After a very long time struggling with it I finally got it working thanks to you! Thank you!

  • @jaxwylde2139
    @jaxwylde2139 Před rokem +4

    Thanks for doing this. I watched it several times (and reviewed your very helpful 'Cheat-sheets' on git). I understand the process for setting up internal CA (with respective keys), as well as the signing request process. BUT, I'm still not sure how to go about creating certificates that have *wild-cards* for an IP range so that I can use more broadly in my home lab environment. I'll keep plugging away with some other how-to tutorials, and eventually I'll have the 'Eureka' moment and it'll all make sense. Nonetheless, your tutorial was very good and much appreciated. Cheers.

  • @pecasuy
    @pecasuy Před rokem +5

    Thank you for your time and knowledge, an invaluable help, especially because you turned something complex into a simple one, thank you, it has helped me a lot

  • @ZeeKay80
    @ZeeKay80 Před 10 měsíci

    Great video! You've corrected the topic in great detail. This will be my reference video on this topic. Keep producing video on these interesting topics. You've got a new subscriber

  • @PabloVillaronga
    @PabloVillaronga Před 2 lety

    Excellent will use it today ! Thanks for documenting all process !

  • @BlitzFingers
    @BlitzFingers Před 5 měsíci

    Thanks Bro. This explanitation gave me the needed steps to finally learn the SSL certificate concept and creation. All of my internally hosted consols are now secure. It was even possible for me to adjust my certificate chain for a cisco wlc which I wanted to start using. Without your instructions, I couldn't have made this jump. Vielen Dank!

  • @Si0bart
    @Si0bart Před rokem

    Thanks for making this video, great explanation of how it all works, reassuring to see all the reading of separate info I've been doing was in a simple video.

  • @ronnyrrr
    @ronnyrrr Před 2 lety

    love the videos pal - literally just finished watching several of your nginx proxy manager videos!

  • @edgreenberg5090
    @edgreenberg5090 Před 9 měsíci

    Very good explanations. The part I was looking for was how to import the ca certificate into the client devices.

  • @jojojawjaw
    @jojojawjaw Před 4 měsíci

    best explanation ever, thank you so much. for the first time, i actually understand ssl certs

  • @MATIFUSKA
    @MATIFUSKA Před 8 měsíci +7

    thank you, just a note , the file extfile.cnf has to be encoded in utf-8 , you can convert it via visual studio code , otherwise an error will show up
    "x509: Error on line 1 of config file "extfile.cnf" 8C520000:error:07000065:configuration file routines:def_load_bio:missing equal sign:crypto\conf\conf_def.c:513:HERE--> ■sline 1"

    • @hnwyheinrich
      @hnwyheinrich Před 6 měsíci

      THANKS! You can also use Notepad++ at the "Encoding" tab and save.
      But powershell script would be the simplest i think :/

    • @HanLok420
      @HanLok420 Před 3 měsíci

      Hello Matifuska, I am running into the same issue. Can you explain me how I encode it into utf-8? I used the Terminal of VS code, but how do I convert it into utf-8?

    • @HanLok420
      @HanLok420 Před 3 měsíci

      Okay I found it, on the bottom right of the window is it. In my case it was in UTF-16 LE, the change to UTF-8 solved it. Thank very much!

    • @aopen130
      @aopen130 Před 21 dnem +1

      Thank you. I was tearing my hair out looking for that error in search engine but it didn't help at all. Also, I did all this on Windows and give this error, but i tried again in debian/linux and it works out okay.

  • @AkamiChannel
    @AkamiChannel Před 2 lety

    It is absolutely nuts how many subs you have now. Congrats man! I have been studying to get some certs lately so I'll see how it goes!

    • @christianlempa
      @christianlempa  Před 2 lety

      Thank you so much :D I still know when we're following each other since the very beginning of this channel ;)

  • @boronxxx
    @boronxxx Před rokem

    hey Christian!
    You just got a new subscriber man!
    Explained it beautifully!

  • @domenicoragosta2690
    @domenicoragosta2690 Před rokem

    Very great video! This was exactly what I've been looking for days and days. Very helpful. Thx! Keep it up

  • @kaushmaisuria
    @kaushmaisuria Před 28 dny

    Thank you so much, very informative and has finally enabled me to get rid of the annoying warning message when logging into my nas. Great job!

  • @MatthewOberlander
    @MatthewOberlander Před 2 lety +1

    Very helpful, helped filled in some knowledge gaps in private CA's.

  • @richardwilliams9042
    @richardwilliams9042 Před rokem

    Thank you, this is just what I was looking for! Very helpful, great video!

  • @EliseuCaldeira
    @EliseuCaldeira Před rokem

    This was exactly what I was looking for.
    Helped a Ton!
    Thanks

  • @d4rkd3v1l85
    @d4rkd3v1l85 Před 2 měsíci

    thank you so much! finally found a working solution at first attempt

  • @salkinxd
    @salkinxd Před 2 lety

    I had so many issues before trying to get SSL working on my VMware ESXI Server. Now I just used all the steps in this video and replaced the .csr file with the "Generate FQDN signing request" text (copied and put in a text file) that you can generate in ESXI. It instantly worked.
    Before this Video I "broke" my server so I couldn't access it from the webinterface anymore (had to plug in Monitor & Keyboard to find out that the SSL Certificate was invalid so the webserver didn't start).
    Thanks for making it this easy to follow👍

  • @khaledbudajaja6137
    @khaledbudajaja6137 Před 8 měsíci

    Your video came just in time to save my day.
    Didn't know i could be a CA as well create a SSL certificate.
    Amazing

  • @evkonoff
    @evkonoff Před 2 lety

    That's exaclty what I did when decide to move all my home network to SSL couple of weeks ago, glad to see we are on the same wave :)

  • @aliounembodj-rj9uw
    @aliounembodj-rj9uw Před rokem

    Really great, it's been a while since I was looking for this, i've implemented the same concept in Pfsense and made a web server to distribute the CA certificate to others devices

  • @tadashitani
    @tadashitani Před 2 měsíci

    Hi Christian, thank you for that video, it is exactly what I was looking for, followed your steps and it works perfectly. You got one more subscriber.

  • @rockbyrondelacruz9916

    Thank you so much. You just earned a subscriber here. Great content.

  • @albertoleo9529
    @albertoleo9529 Před 2 lety +2

    Always great content!
    Re-watch it?? Not only, study it!!
    Absolutely interesting and useful.
    Thank you and keep on with this excellent content

  • @IEnjoyCreatingVideos
    @IEnjoyCreatingVideos Před rokem

    Great video Christian! Thank you very much for sharing it with us!💖👍😎JP

  • @VertegrezNox
    @VertegrezNox Před 2 lety

    Thanks a ton! I have fond memories of adding SSL certificates to web 1.0 programs lol like deadAIM n such. Been really wanting to know more about its potential applications now adays. Appreciate the info. ~

  • @ghkpr
    @ghkpr Před 7 měsíci

    Thanks for the great explanation!

  • @ScumbagLemon
    @ScumbagLemon Před 4 měsíci

    Finally a video that explains this process thoroughly, thank you

  • @youcancallmejoker340
    @youcancallmejoker340 Před rokem

    I autommatically press like when i see your videos. Awesome guy!!!!🙂🙂🙂🙂

  • @efebuyuktas7697
    @efebuyuktas7697 Před rokem +2

    You have touched on a lot of topics in an excellent narrative and really detailed. I really thank you for this. But there is something I want to ask. Does everyone in the "standard user" class who connects to our web page have to add to the trusted certificates you made in the last step here? That is, after we prepare the certificate, can it securely exit to the internet?
    Another issue is that we want to sign our software that we prepare in our company with code signing. Can rootCA be used for this? Can we sign our software using the certificate created with this method?
    Thank you very much.

  • @sayenathn3664
    @sayenathn3664 Před 2 lety

    Loved the video! And yes, please do a deep dive video as well 😇

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Thanks! :) Great idea, I like to do more videos about network protocols and security

  • @aniketteredesai
    @aniketteredesai Před 2 lety +1

    Thx for the fullchain tip. I had read about it in the Proxmox docs, but just the standalone cert worked for me :)

  • @Facey1000
    @Facey1000 Před 2 lety

    Thanks for the helpful video as always! 👍👍

  • @sudhirkumarannapareddy2417
    @sudhirkumarannapareddy2417 Před 9 měsíci

    Thank you for demystifying the concept! It helped a lot!

  • @dazraf
    @dazraf Před rokem

    Excellent presentation and content! Bravo and thank you!!

  • @mohammadshahabrafiq
    @mohammadshahabrafiq Před rokem

    Excellent video. Very informative. Good job.

  • @Clemens.Gooooo
    @Clemens.Gooooo Před 8 měsíci

    Thanks for this video, your documentation is amazing, it makes it very easy to follow your instructions and I now understand what's happening...

  • @hamidullahmuslih6301
    @hamidullahmuslih6301 Před rokem

    You are awesome man! Very clean explanation

  • @LawrenceSingha
    @LawrenceSingha Před 2 lety

    This excellent and great video … yes! finally what I needed 👍🏼

  • @claudiotonelli7709
    @claudiotonelli7709 Před 4 měsíci

    Your video is fantastic!! Compliment

  • @user-xi7kc1my6c
    @user-xi7kc1my6c Před 2 měsíci

    Wow ... amazing !!! ... your step by step is exactly what I need ... and it's working A1 ... thank's for your generosity :)

  • @kudasol
    @kudasol Před 7 měsíci

    Thank you so much 🙏🙏

  • @Glitter_and_Sundog
    @Glitter_and_Sundog Před rokem

    I was searching to really solve this trusting issue puzzle for years by relying on Windows CA role and has been impossible. Endless gratitude to you !!!

  • @yes-ni1od
    @yes-ni1od Před 3 měsíci

    Thank you for splitting the video into segments, I already knew the basics and could just skip ahead to relevant parts.

  • @Berkshire-Hathaway
    @Berkshire-Hathaway Před 2 lety +1

    Thanks for your helpful videos!

  • @djraven68
    @djraven68 Před 9 měsíci

    I love you man, you saved me days

  • @alikk3700
    @alikk3700 Před 8 měsíci

    Thank you, very helped for me

  • @neudyvielma
    @neudyvielma Před 6 měsíci

    Excellent and detailed guide to resolve an issue as complicated as SSL.
    What would be different in the certificates if TLS 1.3 is used?

  • @erinclaudio9211
    @erinclaudio9211 Před rokem

    Thank you VERY much for making this video

  • @LamThanhSang
    @LamThanhSang Před rokem +1

    Thank you very much you SIR!!! you are my go-to youtube channel for my IT carreer!
    Quick question: what terminal software you used in this video? the UI looks so clean. Thank you

    • @Joe1qz
      @Joe1qz Před rokem

      Windows PowerShell

  • @edstuart3924
    @edstuart3924 Před 9 měsíci

    Christian, Great job here. Thanks so much. One question:
    For the SAN name, I'd like to be able to enter a node's, hostname, FQDN and IP, which I would consider to be a common use-case for those not wanting to use wildcards. I've played around with the contents of the extfile.cnf to no avail. Any pointers ?

  • @albuslrc
    @albuslrc Před 10 měsíci

    It works! Thanks! 😄

  • @miguelvasquez9849
    @miguelvasquez9849 Před 11 měsíci

    thanks for the video. I didn't understand the last part, is the command executed on the machine from where I open the page or on the server?

  • @Nyemaster
    @Nyemaster Před rokem

    Thank You so much!

  • @sh0Guun_
    @sh0Guun_ Před 4 měsíci

    Thank you very much. You helped me a lot.

  • @djddavies
    @djddavies Před 7 měsíci

    Awesome work.

  • @georgewashington7251
    @georgewashington7251 Před 7 měsíci

    This is really helpful. Thank you.

  • @FRITTY12348546
    @FRITTY12348546 Před měsícem

    thank you so much bro I was going around in circles until I got to this video

  • @marcello4258
    @marcello4258 Před 2 lety

    In addition to this, if you are running Linux a self signed cert also helps you with signing your bootloader and enable secure boot properly ;) ..fun video always enjoy your passion with them!

  • @romabilibov7612
    @romabilibov7612 Před rokem

    Thank you very much! You saved my day!

  • @reno.zed1
    @reno.zed1 Před 5 měsíci

    Subscribed. I'm trying to keep my subscriptions list tidy, so take it as a massive compliment!

  • @lancebukkake
    @lancebukkake Před 8 měsíci

    very useful video, thank you very much

  • @primistandem6781
    @primistandem6781 Před 2 lety

    Thank you very much! I tried to do this and failed a couple of weeks ago. Gonna give it another try.

  • @richcampbell7635
    @richcampbell7635 Před měsícem

    Thanks for taking the time to put together this video tutorial. I understand how to follow through the steps as you're doing them, but unfortunately I don't understand WHY I'm doing it at each step and what each step is doing for me, because there were too many words being spoken and it was confusing. One of the things I was not initially clear on, but now understand why is that I needed to add a linux distro in my lab environment to run openSSL. That's one more thing for me to have to manage! Also, where does it put the files it made? I can't find them. Forgive my rookie questions, first time I'm ever doing this. Very new to linux and to openSSL. Total NOOB here with certificates.

  • @gmcinalli
    @gmcinalli Před 2 lety

    Thank you for the video, it's awesome! May I ask you how did you set a custom color for the command parameters on the terminal?
    To be clear, in the initial command: "openssl" had one color, "generate" another, "-aes256 -out" were slightly obscured and so on...

    • @christianlempa
      @christianlempa  Před 2 lety

      Maybe that's because I'm using PowerShell, that uses different colors for arguments, commands, etc.

    • @gmcinalli
      @gmcinalli Před 2 lety

      @@christianlempa I thought you used the zsh-syntax-highlighting plugin.

  • @Glatze603
    @Glatze603 Před 2 lety

    Hi Christian, endlich mal eine verständliche und funktionierende Anleitung, wie man selber Zertifikate für sein Homelab erstellen und einsetzen kann. Sehr gut, danke dir! Ich möchte an dieser Stelle auch noch einmal erwähnen, dass ich neben deinen Videoinhalten auch in besonderem Maße die Qualität deiner Videos (Sound, Bild, Schnitt, Lautstärke, Farben, Abstimmung, Präsentation, Darstellung, Stimmung etc.) zu schätzen weiß. Nach meinem Empfinden bildest du damit einen Standard, an den derzeit kaum jemand heran kommt. Weiter so. Uppps, jetzt habe ich doch instinktiv in deutsch geschrieben 🙂

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Vielen Dank! Freut mich, dass dir die Videos so gut gefallen, da du einer meiner langjährigen Zuschauer bist :D

    • @BellaNestCam
      @BellaNestCam Před 3 měsíci

      @@christianlempa what ad blocker are you using? the new/blank web page shows 228,000 ads blocked and bandwidth saved. Thanks! and thanks for this video!!

  • @michelangelop3923
    @michelangelop3923 Před 2 lety

    Very good video, for my local environment I use cerbot with cloudflare api to authorize the certificate creation locally without any ports open and then either pass everything through a local proxy or by installing the cerbot client and setting up the subdomain for the service if it's an important one like freeipa/teleport/other important service that I don't want to use a local proxy.

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Thank you! :)

    • @YashPokharel
      @YashPokharel Před 2 lety +1

      wow great, as I work for a small enterprise, I was looking something similar to it.

  • @hreidarj
    @hreidarj Před rokem

    Awesome video, are you using your private CA with Teleport? Does Teleport use it to sign the certificates it generates?

  • @marcot.7893
    @marcot.7893 Před 2 lety

    Danke für das Video, das hat unser Problem gelöst

  • @bethelhemchalla
    @bethelhemchalla Před rokem

    this is by far the best video on this topic, thank you. I just have one question, I don't have a physical server I'm just testing in a VirtualBox and I was wondering if u could suggest to me any good VMs that I can install on VirtualBox and also install the certificates, that would really help me out

  • @_moodie04
    @_moodie04 Před rokem

    Thanks a lot. What type of terminal are you using?

  • @ernst367
    @ernst367 Před 2 lety

    Come in handy! Thank you!

  • @pitkan1
    @pitkan1 Před 3 měsíci

    video was so good i had to smash like & subscribe

  • @93davve93
    @93davve93 Před 2 lety +11

    Thanks, good introduction video!
    For a more in-depth understanding and for best practices regarding certificates I highly recommend reading the book "TLS Mastery" by Michael W Lucas. Small and handy book with around 200 pages.

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Thanks! I might have a look at that, great suggestions :)

  • @dragonball41876
    @dragonball41876 Před měsícem

    Very clear explanation video! I have subscribed. Just doesn't find the install guide for Macbook in the cheatsheet.

  • @salmanraza5223
    @salmanraza5223 Před rokem

    Excellent!

  • @teddybear9152
    @teddybear9152 Před 2 lety

    Finally the answer to the most headache of running a home lab!

  • @hooktest8101
    @hooktest8101 Před 2 lety

    thanks a lot for the amazing video

  • @apulacheyt
    @apulacheyt Před 2 lety +4

    Excellent video very educational and definitely most needed at my homelab.
    Nevertheless how do I use the new self-signed cert in others webapps that doesn't have a webgui to register certs like: Portainer, PiHole, Rancher, Kasm, SonarQube, Jellyfin, Guacamole, Semaphore, Cockpit, etc (a follow up video will be great)
    Many thanks in advance!!!!

    • @christianlempa
      @christianlempa  Před 2 lety +2

      Thank you so much! :) Usually, these apps have sections in their UI, or configuration file that allows you to put the "private key" and the "fullchain" cert somewhere (Portainer f.e. has it in the Settings Menu) . I'm using it in Traefik, Sophos XG, Proxmox, Portainer, etc.

    • @UnibenLive
      @UnibenLive Před 7 měsíci

      @@christianlempa I am using Sophos XG and I need guidance in setting up certificates

  • @alexfrance3646
    @alexfrance3646 Před 2 lety

    Great video this. Thank you

  • @KyleG384
    @KyleG384 Před rokem

    Great content!

  • @ninjalabs_
    @ninjalabs_ Před 2 lety

    Ok but this is freaky. I was looking for a decent tutorial the whole of today and knew you mentioned it before but couldn't find it lol. At least I know where to look now

  • @ahmadissa5825
    @ahmadissa5825 Před 3 měsíci

    Thank you for this explanation , if you have documentation about steps it will be helpful to put this here

  • @Techtips200
    @Techtips200 Před 2 lety

    well done ... please bring more stuff on this...

  • @rodo2486
    @rodo2486 Před 2 lety

    this channel is gold