MySQL TLS/SSL error: self-signed certificate in certificate chain #80

Closed
opened 2026-04-05 20:29:44 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @adminpass on 3/6/2026

Prerequisites

Vaultwarden Support String

export DATABASE_URL=mysql://root:pass@10.0.1.11:3306/vaultwarden
export DATABASE_MIN_CONNS=2
export DATABASE_MAX_CONNS=5

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

[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",
)

Screenshots or Videos

No response

Additional Context

No response

*Originally created by @adminpass on 3/6/2026* ### Prerequisites - [x] I have searched the existing **Closed _AND_ Open** [Issues](https://github.com/dani-garcia/vaultwarden/issues?q=is%3Aissue%20) **_AND_** [Discussions](https://github.com/dani-garcia/vaultwarden/discussions?discussions_q=) - [x] I have searched and read the [documentation](https://github.com/dani-garcia/vaultwarden/wiki/) ### Vaultwarden Support String ```ini export DATABASE_URL=mysql://root:pass@10.0.1.11:3306/vaultwarden export DATABASE_MIN_CONNS=2 export DATABASE_MAX_CONNS=5 ``` 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 ```text [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", ) ``` ### Screenshots or Videos _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#80