Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Need a HowTo for setting SSL certificates for a MySQL Connection - QT5

[SOLVED] Need a HowTo for setting SSL certificates for a MySQL Connection - QT5

Scheduled Pinned Locked Moved General and Desktop
15 Posts 5 Posters 7.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GiveMeMyName
    wrote on last edited by
    #2

    Seems that this is not possible by using the current driver of mysql with qt5. And i am not enough skilled to rewrite the driver for supporting this ^^. I will use it like this until a new update maybe :/. I don't mark this as resolved because it's still unsolved :)

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nicolas_rolando
      wrote on last edited by
      #3

      Hi. I send you a little contribution to qt-project. Many developers are waiting for this feature: "Enhanced source code":http://www.sendspace.com/file/i5kvej
      Thanks. Bye

      T 1 Reply Last reply
      1
      • G Offline
        G Offline
        GiveMeMyName
        wrote on last edited by
        #4

        Hey :) I saw your work, and you did it very well :) I will have a try in my project and i'll give you my feedback :)

        Thanks you again for working on this !

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GiveMeMyName
          wrote on last edited by
          #5

          Well, after one week testing, on OS X Lion and Win7 (32 + 64 bits) mysql clients, i just have one word for you : GREAT :D

          The MySQL server used for testing is under mysql 5.5.31 + Ubuntu 12.04. OpenSSL version here is 1.0.1.

          That can be useful for other people. Maybe someone can pin this topic ?

          I can mark it as solved now :)

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nicolas_rolando
            wrote on last edited by
            #6

            Thanks, pal. I'm glad it has been useful. Bye

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Lukoch
              wrote on last edited by
              #7

              Hi, I know thread is closed for 2 years, but is there any chance someone has this example project from nicolas_rolando ? It would really help me since I am not able to set secure MySQL connection.

              Thanks.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Hi and welcome to devnet,

                There's a patch currently under review that implements this. Have a look here

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Lukoch
                  wrote on last edited by
                  #9

                  Thank you, I'll try this.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Lukoch
                    wrote on last edited by
                    #10

                    One more question, how can I apply this patch ?

                    I can' t find those files in Qt 5.4 folder (src_sql_kernel_qsqldatabase.cpp,...).

                    Thanks.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      Might be a silly question but did you install the Qt sources ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Lukoch
                        wrote on last edited by
                        #12

                        Oh, right, sorry... I am using prebuilt components now, thanks.

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Lukoch
                          wrote on last edited by
                          #13

                          Actually, it would be easier for me to migrate DB to other solution, such as PostgreSQL. I am using mulitiple devices and platforms for my project and it would mean to apply the patch for all of them.

                          Is SSL connection using certificates working for PostgreSQL driver in Qt ? I wasn' t able to find examples.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            What about that thread ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • N nicolas_rolando

                              Hi. I send you a little contribution to qt-project. Many developers are waiting for this feature: "Enhanced source code":http://www.sendspace.com/file/i5kvej
                              Thanks. Bye

                              T Offline
                              T Offline
                              tinysoft
                              wrote on last edited by tinysoft
                              #15

                              @nicolas_rolando said:

                              Hi. I send you a little contribution to qt-project. Many developers are waiting for this feature: "Enhanced source code":http://www.sendspace.com/file/i5kvej
                              Thanks. Bye

                              hello @nicolas_rolando , @GiveMeMyName

                              could you re upload the link .. it looks like it's expired

                              thank you in advance

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved