TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Feature: Implementing mysql connection with ssl enabled

Open useronkel opened this issue 2 years ago • 3 comments

Hi. I would recommend the option to add ssl configuration to teampass. Everything is secure, only the connection to the database is not ;-)

I'm using a mysql8-Cluster with strong encryption, on table base (transparent) and connection base. Therefore my database for teampass is local without any encryption...

Thx

useronkel avatar May 18 '22 18:05 useronkel

Thank you for suggestion @useronkel I added it but without UI until now. You can do the next:

  • open file ./includes/config/settings.php
  • Replace
define("DB_ENCODING", "utf8");
  • By
define("DB_ENCODING", "utf8");
define("DB_SSL", array(
    "key" => "",
    "cert" => "",
    "ca_cert" => "",
    "ca_path" => "",
    "cipher" => ""
));
define("DB_CONNECT_OPTIONS", array(
    MYSQLI_OPT_CONNECT_TIMEOUT => 10
));
  • Enter the expected element in DB_SSL.

Note: I couldn't test it.

nilsteampassnet avatar May 21 '22 16:05 nilsteampassnet

Thx a lot! I'll give it a try and will give feedback soon :-)

useronkel avatar May 21 '22 18:05 useronkel

I have the same error, I upgraded from 3.0.0.10 to 3.0.0.18

turekg avatar Jul 12 '22 13:07 turekg

Hello,

i need some advise with this. Our database requires ssl only for the server connection. The client does not have to have a key/cert. But I have no idea how to set this up. With the GUI I can not set the ssl parameters and if I want to create the settings.php my self, I have the problem how to encrypt the password. I'm not a PHP developer. How to set this up if I can not use the graphical installer?

By the way ... thanks for your work.

Best Martin

maddin79 avatar Oct 25 '22 07:10 maddin79