Coder Social home page Coder Social logo

Comments (5)

lilida avatar lilida commented on June 30, 2024

I don't think it comes out of box. Per my understanding, it just needs some options to be enabled in connection string. But it shouldn't be too hard to add it. Probably just change MysqlDataSourceFactory.java . Do you have a sample connection string you want to use?

from teletraan.

yosida95 avatar yosida95 commented on June 30, 2024

Nope. I'm not familiar with JDBC and also Java. As I read Connector/J documentation, the parameter would looks like &useSSL=true&requireSSL=true&verifyServerCertificate=true&clientCertificateKeyStoreUrl=/path/to/client-cert.jks&clientCertificateKeyStoreType=JKS&trustCertificateKeyStoreUrl=/path/to/server-cert.jks&trustCertificateKeySToreType=JKS

An alternative MySQL client command line to intended to make same connection is mysql -u user -p --ssl-cert /path/to/client-cert.pem --ssl-key=/path/to/client-key.pem --ssl-ca /path/to/server-ca.pem

The transformation to JSK from PEM is done by converting PEM to DER using openssl, then import it to JKS keystore using keytool.

from teletraan.

lilida avatar lilida commented on June 30, 2024

I have made a change #364 so you can pass connection properties,

for ex,

db:
  type: mysql

  host: ${TELETRAAN_DB_HOST:-localhost}
  port: 3306
  userName: root
  password:
  connectionProperties:
            useSSL: true
            verifyServerCertificate: true

from teletraan.

lilida avatar lilida commented on June 30, 2024

Merged

from teletraan.

yosida95 avatar yosida95 commented on June 30, 2024

Thank you for your quick support! I'll try the latest revision in next few days.

from teletraan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.