Re: Can't connect to MySQL without SSL

basti via dovecot <[email protected]>
Newsgroups gmane.mail.imap.dovecot
Message-ID <[email protected]>
Hello,

did mysql require secure transport (require_secure_transport=ON)?
you can try

mysql {
   mysql_host = db.example.com
   mysql_dbname = mail
   mysql_user = dovecot
   mysql_password = secret

   mysql_ssl = yes
   ssl_client_require_valid_cert = no
}


Am 04.08.26 um 22:25 schrieb dovecot--- via dovecot:
> Hi!
> 
> I try to migrate from dovecot 2.3 to dovecot CE 2.4, but within a docker container. But I always get the following error from Dovecot CE:
> 
> Error: auth: mysql(host.docker.internal): Connect failed to database (foobar): TLS/SSL error: self-signed certificate in certificate chain - waiting for 1 seconds before retry
> 
> This is how I configured the mysql connection:
> 
> mysql host.docker.internal {
>    host = host.docker.internal
>    port = 3306
>    user = ...
>    password = ...
>    dbname = foobar
>    ssl = no
> }
> 
> So MySQL runs on the host machine directly, not in a container - therefore I'm using "host.docker.internal" as an host. But I don't need SQL encryption, since both MySQL and Dovecot run on the same machine. So why the heck does it look like, Dovecot is trying to connect using SSL?
> 
> Best regards,
> Billie
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.