mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
MySQL TLS/SSL error: self-signed certificate in certificate chain #6202
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adminpass on GitHub (Mar 6, 2026).
Prerequisites
Vaultwarden Support String
and DATABASE_URL=mysql://root:pass@10.0.1.11:3306/vaultwarden?ssl_mode=DISABLED
[2026-03-06 10:00:05.237][vaultwarden::util][WARN] Can't connect to database, retrying: DieselCon.
[CAUSE] BadConnection(
"TLS/SSL error: self-signed certificate in certificate chain",
)
Vaultwarden Build Version
v1.35.4
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
nginx
Host/Server Operating System
Linux
Operating System Version
alpine 3.24
Clients
Web Vault
Client Version
No response
Steps To Reproduce
↑
Expected Result
mysql TLS/SSL error
Actual Result
mysql TLS/SSL error
Logs
Screenshots or Videos
No response
Additional Context
No response
@stefan0xC commented on GitHub (Mar 6, 2026):
Not a bug but you are missing some configuration. Cf. https://docs.diesel.rs/main/diesel/mysql/struct.MysqlConnection.html#method.establish (and the linked mysql docs) for more information how to configure an encrypted mysql connection.
@adminpass commented on GitHub (Mar 6, 2026):
I found the reason!
Alpine 3.22 -> mariadb-connector-c-3.3.10-r0
Alpine 3.23+ -> mariadb-connector-c-3.4.6-r0
1. Behavior in Version 3.3.x (Old)
2. Behavior in Version 3.4.x (New - Alpine 3.24)