MariaDB SQL over SSL/TLS

Поділитися
Вставка
  • Опубліковано 9 січ 2021
  • If you're accessing a MariaDB or MySQL server remotely, you should set up SSL/TLS encryption to secure the traffic. Join me as I configure a MariaDB server to serve over TLS, then set up a MariaDB client and a PHP PDO application to access the server over TLS.
    The commands I used in this video can be found in text form here: nerdonthestreet.com/wiki?find...
    ---
    Join the Nerd Club: nerdclub.nots.co
    Official website: nerdonthestreet.com
    Discord server: discord.nots.co
    Subreddit: / nerdonthestreet
    Facebook page: / nerdonthestreet
    Twitter feed: / nots_network
    E-Mail: jacob@nerdonthestreet.com
  • Наука та технологія

КОМЕНТАРІ • 26

  • @Stronger108
    @Stronger108 2 роки тому +4

    This is the most fantastic video I think I've ever set my eyes on. Not only did you explain from start to finish, you explained plenty of niche things to look out for that normally actually did hang me up for a long time without your video. You are fantastic

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

    Fantastic presentation. Well done. Really appreciate the demo of showing how to use SSL with PHP & PDO drivers. This will save me hours of research on my own.

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

    Great tutorial. I probably won't be doing this soon, but it did give me some ideas. As I'm only getting services/servers to run on my local network I have a local DNS that gives out domain names to my machines, but those running on SSL are self-signed for obvious reasons and browsers keep giving me the certificate warnings and in some instances, like testing out a local BigBlueButton server which requires SSL and WebRTC to work needs a signed certificate from a trusted authority, so I hit a brick wall there.
    The part where you demonstrated on how to get the server to act like a certificate authority for the MariaDB client gave me the idea to make a dedicated CA server for the local domains, so thank you!

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

    Great video. For those using MySQL 8, notice that it comes with certs out-of-the-box. Also you can use mysql_ssl_rsa_setup to generate certs without all the hassle.

  • @RobMitchell2009
    @RobMitchell2009 2 роки тому +4

    Seriously GREAT content. TYSM!

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

    Great explanation. Very clear and well presented.

  • @sagarclassic2336
    @sagarclassic2336 2 роки тому +4

    Absolutely like this video. Explained every bit of it. Nice one. I would recommend explaining a bit more on how a client uses its certificate to talk to mariadb server on SSL to have a better understanding. Thanks for this great video again. Subscribing ur channel for more videos.

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

    Good example, thanks for sharing this practical case.

  • @FF7824
    @FF7824 2 роки тому +2

    Very well done!! Thank you!

  • @raphaels190
    @raphaels190 2 роки тому +2

    Dude you're a life saver, Ty!

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

    Brilliant explanations of many things. Thanks!

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

    Subscribed - thank you! Great video!

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

    Man you are genius..i was looking for so many other videos but yours just awesome..kudos I have become a fan

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

    It would be interesting to know how to do this with Dockerized MariaDB servers. Good video, great pace and speaking style.

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

    Thanks! very informative video. and actual solution.

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

    Imper clear!! Thk u

  • @TheZackattack1029
    @TheZackattack1029 Місяць тому

    Great tutorial, I am getting "Error: SQLSTATE[HY000] [2002]" trying to use PDO, everything works because I can connect to the database using workbench with the same PEM files.

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

    Thank you .

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

    CAn we only make one way ssl secure that is the application is using the public cert i.e ca-cert.pem and connect to mariadb over ssl

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

    You are smart now.
    I am not sure what to call you
    Bro or Uncle?

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

    How about docker?

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

    The only valid point made in this video is that St Louis is better than Denver.

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

    Hey, thank you for this great tutorial. I am trying to set up a database server on Ubuntu 20.04 with mariadb and do get the following error message when trying to connect: 'ERROR 2026 (HY000): SSL connection error: The certificate is NOT trusted. The name in the certificate does not match the expected. ' I've repeated all steps several times now, ensuring every command is correct. I didn't change anything else regarding server or client configuration, it is a clean installation. I did use different common names in each file and so on. I also tried concatinating the server-cert and client-cert. Any idea/solution to this?

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

      Also running into this issue... Looks like not much support on the topic on Google. Did you figure this out?

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

    Hey NOS. Thanks, for this. I have tried using the 'openssl rsa -in ./server-key.pem -out ./server-key-rsa.pem' command but I don't get the 'BEGIN RSA PRIVATE KEY' statement. Please help. I'm using Jammy.