[sr-dev] [kamailio/kamailio] Database TLS connection through cnf file: TLS error followed by memory corruption messages (Issue #3115)

liviu-rolo notifications at github.com
Wed May 18 16:43:41 CEST 2022


I reproduce the problem with the minimal Kamailio configuration ([here](https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamailio-minimal-proxy.cfg)) by adding the following lines:
```
/* add local domain aliases */
alias="euler.local"

/* listen addresses */
enable_tls=yes
listen=tls:192.168.0.11:5061
loadmodule "tls"
modparam("tls", "private_key", "/home/euclid/etc/certs/local/privkey.pem")
modparam("tls", "certificate", "/home/euclid/etc/certs/local/kamailio1_cert.pem")
loadmodule "db_mysql"
loadmodule "sqlops"
modparam("sqlops","sqlcon","euler=>mysql://[euclid]/euler")
```

Of course, other resources are needed:
- database certificates: `ca-cert.pem  client-cert.pem  client-key.pem  server-cert.pem  server-key.pem`
- database (mariadb in my case) launched with SSL
- Kamailio certificates: `privkey.pem kamailio1_cert.pem`
- `/etc/mysql/conf.d/my.cnf` with the `[euclid]` section (mentioned earlier as ... `euler`)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3115#issuecomment-1130108018
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3115/1130108018 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220518/24da7a4c/attachment.htm>


More information about the sr-dev mailing list