-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connection failed with drogon when mysql db is ssl required #2273
Comments
@an-tao please guide me on this, when mysql db is ssl/tls mode required then how to connect with db using config.json , in the orm codebase , i am not seeing any options to include ssl/tls related parameters. |
@an-tao you can see the connection string -> no ssl related info is passed , drogon/orm_lib/src/DbClientManager.cc Line 211 in cbf63f8
|
Currently, Drogon does not support the function to disable certificate verification in the MySQL client. You need to configure formal certificates issued by an SSL certificate authority on the server side instead of using self-signed certificates, or disable the SSL configuration. |
@an-tao i think mariadb-connector will take care the verification, we have to just provide the ssl information in connectionString , |
@rafeeque1 You need to look at the relevant API of the client driver, and then refer to the postgresql processing in drogon to rewrite the mysql part. |
my mysql db is SSL enabled , when trying to connect it using drogon orm , its giving below error,
ERROR Error(2026) "TLS/SSL error: self-signed certificate in certificate chain" - MysqlConnection.cc:333
its because of
drogon/lib/src/HttpAppFrameworkImpl.cc
Line 988 in cbf63f8
here we are just providing generic info , not ssl/tls related information.
i am using ubuntu
The text was updated successfully, but these errors were encountered: