How to create a valid self signed SSL Certificate?

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 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.

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

  • @charleseaster3518
    @charleseaster3518 4 หลายเดือนก่อน +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.

  • @RayDeMoss
    @RayDeMoss 2 ปีที่แล้ว +67

    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.

    • @christianlempa
      @christianlempa  2 ปีที่แล้ว +7

      Glad it was useful! Thank you ;)

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

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

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

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

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

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

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

    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!

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

    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!

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

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

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

      Thanks! Glad it was helpful 😉

  • @ZeeKay80
    @ZeeKay80 11 หลายเดือนก่อน

    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

  • @photoshop-requests
    @photoshop-requests ปีที่แล้ว

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

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

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

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

      Thank you! Glad it's helpful 😀

  • @LordDemonos
    @LordDemonos 2 หลายเดือนก่อน +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!

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

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

  • @peculiar6392
    @peculiar6392 ปีที่แล้ว +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! 👏👏👏

  • @BlitzFingers
    @BlitzFingers 6 หลายเดือนก่อน

    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!

  • @pecasuy
    @pecasuy ปีที่แล้ว +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

  • @jaxwylde2139
    @jaxwylde2139 ปีที่แล้ว +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.

  • @pedrobarone4786
    @pedrobarone4786 21 วันที่ผ่านมา

    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

    • @christianlempa
      @christianlempa  21 วันที่ผ่านมา

      Thank you so much! Glad it helped :)

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

    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.

  • @jojojawjaw
    @jojojawjaw 5 หลายเดือนก่อน

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

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

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

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

    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👍

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

      Thanks, glad it was helpful 😀

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

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

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

    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  2 ปีที่แล้ว

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

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

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

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

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

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

    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. ~

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

    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 :)

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

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

  • @ghkpr
    @ghkpr 7 หลายเดือนก่อน

    Thanks for the great explanation!

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

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

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

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

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

      Thx! Glad it was helpful ;)

    • @adminpyramid701
      @adminpyramid701 2 หลายเดือนก่อน

      Thanks bro
      @@christianlempa

  • @aliounembodj-rj9uw
    @aliounembodj-rj9uw ปีที่แล้ว

    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

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

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

  • @MATIFUSKA
    @MATIFUSKA 9 หลายเดือนก่อน +8

    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 7 หลายเดือนก่อน

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

    • @HanLok420
      @HanLok420 4 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      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 หลายเดือนก่อน +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.

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

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

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

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

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

      Thanks! Glad that it helped you :)

  • @d4rkd3v1l85
    @d4rkd3v1l85 2 หลายเดือนก่อน

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

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

    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

    • @christianlempa
      @christianlempa  9 หลายเดือนก่อน +1

      Thanks! Glad you liked it :)

  • @tadashitani
    @tadashitani 3 หลายเดือนก่อน

    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.

    • @christianlempa
      @christianlempa  3 หลายเดือนก่อน

      Thank you so much :)

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

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

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

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

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

    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!

  • @ScumbagLemon
    @ScumbagLemon 5 หลายเดือนก่อน

    Finally a video that explains this process thoroughly, thank you

  • @vivekwarjurkar6452
    @vivekwarjurkar6452 21 วันที่ผ่านมา

    I don't have enough words to thank you !!!!! You saved a life here..

    • @christianlempa
      @christianlempa  20 วันที่ผ่านมา +1

      Thank you! Glad you liked it 🫶

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

    Excellent presentation and content! Bravo and thank you!!

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

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

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

    Excellent video. Very informative. Good job.

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

    You are awesome man! Very clean explanation

  • @user-xi7kc1my6c
    @user-xi7kc1my6c 3 หลายเดือนก่อน

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

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

    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 !!!

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

    Thanks for the helpful video as always! 👍👍

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

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

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

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

  • @Clemens.Gooooo
    @Clemens.Gooooo 9 หลายเดือนก่อน

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

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

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

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

    This is really helpful. Thank you.

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

    I love you man, you saved me days

  • @efebuyuktas7697
    @efebuyuktas7697 ปีที่แล้ว +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.

  • @yes-ni1od
    @yes-ni1od 4 หลายเดือนก่อน

    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 2 ปีที่แล้ว +1

    Thanks for your helpful videos!

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

    Thank you, very helped for me

  • @claudiotonelli7709
    @claudiotonelli7709 5 หลายเดือนก่อน

    Your video is fantastic!! Compliment

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

    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  2 ปีที่แล้ว +1

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

    • @BellaNestCam
      @BellaNestCam 4 หลายเดือนก่อน

      @@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!!

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

    Thank you VERY much for making this video

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

    Thank You so much!

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

    Thank you so much 🙏🙏

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

    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!

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

    very useful video, thank you very much

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

    Awesome work.

  • @AmirBakhtiari-pw3yh
    @AmirBakhtiari-pw3yh 19 วันที่ผ่านมา

    such a great work. thanks!

  • @albuslrc
    @albuslrc 11 หลายเดือนก่อน

    It works! Thanks! 😄

  • @reno.zed1
    @reno.zed1 6 หลายเดือนก่อน

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

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

    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?

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

    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 ?

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

    Thank you very much! You saved my day!

  • @marcot.7893
    @marcot.7893 2 ปีที่แล้ว

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

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

      Gerne! Freut mich dass es euch geholfen hat ;)

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

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

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

      Glad it was useful! :D

  • @richcampbell7635
    @richcampbell7635 2 หลายเดือนก่อน

    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.

  • @sh0Guun_
    @sh0Guun_ 5 หลายเดือนก่อน

    Thank you very much. You helped me a lot.

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

    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

  • @neudyvielma
    @neudyvielma 6 หลายเดือนก่อน

    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?

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

    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

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

    Come in handy! Thank you!

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

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

  • @93davve93
    @93davve93 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

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

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

    this channel is gold

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

    thanks a lot for the amazing video

  •  ปีที่แล้ว +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 ปีที่แล้ว

      Windows PowerShell

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

    Great video this. Thank you

  • @nob4131
    @nob4131 9 หลายเดือนก่อน +1

    ICH BIN SO GLÜCKLICH DAAAANKE🎉❤❤❤❤❤❤

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

    very informative content.

  • @pitkan1
    @pitkan1 3 หลายเดือนก่อน

    video was so good i had to smash like & subscribe

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

    Great content!

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

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

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

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

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

    Thanks Very much

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

    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  2 ปีที่แล้ว +1

      Thank you! :)

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

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

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

    Okay, I did it. Finally I got that regular padlock in the corner of my browser ^) BTW Ubuntu/Firefox want certificates with '.crt' extension. '.pem' don't work with update-ca-certificates command and aren't imported to firefox.

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

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

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

    struggling for 4 days now to have ansible role for this need exactly, apparently I had mistakes, if I succeed can I make PR to the boilerplate repository ?
    thank you very much for your response in advance.