How can I verify I'm using SSL to connect to mysql? Announcing the arrival of Valued Associate...

How much damage would a cupful of neutron star matter do to the Earth?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

"Lost his faith in humanity in the trenches of Verdun" — last line of an SF story

Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?

Proof of work - 51% attack

Why weren't discrete x86 CPUs ever used in game hardware?

How to make a Field only accept Numbers in Magento 2

File name problem(?)

What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?

Find 108 by using 3,4,6

Putting class ranking in CV, but against dept guidelines

Exposing GRASS GIS add-on in QGIS Processing framework?

Amount of permutations on an NxNxN Rubik's Cube

How to write capital alpha?

Would it be possible to dictate a bech32 address as a list of English words?

Did any compiler fully use 80-bit floating point?

How to run automated tests after each commit?

Can a new player join a group only when a new campaign starts?

Significance of Cersei's obsession with elephants?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

Why are vacuum tubes still used in amateur radios?

How to plot logistic regression decision boundary?

How does light 'choose' between wave and particle behaviour?

What is "gratricide"?



How can I verify I'm using SSL to connect to mysql?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)MySQL Replication using SSLConnecting to MYSQL on an EC2 instanceHow to connect to an Amazon PostgreSQL database using SSLStarting MySQL with SSL option using systemdSQL Server doesn't send intermediate SSL certificatesMySQL 5.7 enforce SSLMySQL / MariaDB SSL Connection without verify CAHow can I setup replication with the DNS name instead of the Server NameWorkbench freezes on connecting after Ubuntu 18.04 upgrade





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







22















I have configured my server to allow SSL, and have modified my client ~/.my.cnf so I use SSL:



[client]
ssl
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=~/certs/ca-cert.pem


When I log in with my client and view the status, it lists a cipher on the SSL line:



mysql> s
--------------
SSL: Cipher in use is DHE-RSA-AES256-SHA


Without installing something like wireshark to verify that the connection is secure, can I assume that I'm connecting via SSL based on this information?










share|improve this question





























    22















    I have configured my server to allow SSL, and have modified my client ~/.my.cnf so I use SSL:



    [client]
    ssl
    ssl-cipher=DHE-RSA-AES256-SHA
    ssl-ca=~/certs/ca-cert.pem


    When I log in with my client and view the status, it lists a cipher on the SSL line:



    mysql> s
    --------------
    SSL: Cipher in use is DHE-RSA-AES256-SHA


    Without installing something like wireshark to verify that the connection is secure, can I assume that I'm connecting via SSL based on this information?










    share|improve this question

























      22












      22








      22


      5






      I have configured my server to allow SSL, and have modified my client ~/.my.cnf so I use SSL:



      [client]
      ssl
      ssl-cipher=DHE-RSA-AES256-SHA
      ssl-ca=~/certs/ca-cert.pem


      When I log in with my client and view the status, it lists a cipher on the SSL line:



      mysql> s
      --------------
      SSL: Cipher in use is DHE-RSA-AES256-SHA


      Without installing something like wireshark to verify that the connection is secure, can I assume that I'm connecting via SSL based on this information?










      share|improve this question














      I have configured my server to allow SSL, and have modified my client ~/.my.cnf so I use SSL:



      [client]
      ssl
      ssl-cipher=DHE-RSA-AES256-SHA
      ssl-ca=~/certs/ca-cert.pem


      When I log in with my client and view the status, it lists a cipher on the SSL line:



      mysql> s
      --------------
      SSL: Cipher in use is DHE-RSA-AES256-SHA


      Without installing something like wireshark to verify that the connection is secure, can I assume that I'm connecting via SSL based on this information?







      mysql ssl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 15 '13 at 14:35









      chrischris

      5324925




      5324925






















          3 Answers
          3






          active

          oldest

          votes


















          28














          From the client, just run status. If this connection is using SSL, you'll get something interesting in the SSL row.



          mysql> status
          --------------
          mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1

          Connection id: 12
          Current database:
          Current user: replicator@domU-12-31-39-10-54-BD.compute-1.internal
          SSL: Cipher in use is DHE-RSA-AES256-SHA
          Current pager: stdout
          Using outfile: ''
          Using delimiter: ;
          Server version: 5.5.30-log MySQL Community Server (GPL)
          Protocol version: 10
          Connection: boston.hugskeep.wstudent.com via TCP/IP
          Server characterset: latin1
          Db characterset: latin1
          Client characterset: utf8
          Conn. characterset: utf8
          TCP port: 3306
          Uptime: 44 min 49 sec

          Threads: 2 Questions: 16 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 27 Queries per second avg: 0.005
          --------------

          mysql>


          If this connection is not using SSL, you'll get:



          SSL:            Not in use


          You can also use:



          mysql> SHOW STATUS LIKE 'Ssl_cipher';
          +---------------+--------------------+
          | Variable_name | Value |
          +---------------+--------------------+
          | Ssl_cipher | DHE-RSA-AES256-SHA |
          +---------------+--------------------+
          1 row in set (0.00 sec)

          mysql>


          But I think the first is more attractive, and sure easier to type.






          share|improve this answer
























          • show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

            – Joao Costa
            Feb 13 at 16:54



















          1














          This is applicable to mariadb mysql (haven't tried in pure mysql):



          mysql -h xxx.xxx.xxx.xxx -u testuser --ssl



          '--ssl' will tell you if ssl is enabled, without, it will say 'not in use'






          share|improve this answer































            0














            force SSL per user



            alter user 'my_user'@'%' REQUIRE SSL;


            mysql> s





            share








            New contributor




            Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "182"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f36776%2fhow-can-i-verify-im-using-ssl-to-connect-to-mysql%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              28














              From the client, just run status. If this connection is using SSL, you'll get something interesting in the SSL row.



              mysql> status
              --------------
              mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1

              Connection id: 12
              Current database:
              Current user: replicator@domU-12-31-39-10-54-BD.compute-1.internal
              SSL: Cipher in use is DHE-RSA-AES256-SHA
              Current pager: stdout
              Using outfile: ''
              Using delimiter: ;
              Server version: 5.5.30-log MySQL Community Server (GPL)
              Protocol version: 10
              Connection: boston.hugskeep.wstudent.com via TCP/IP
              Server characterset: latin1
              Db characterset: latin1
              Client characterset: utf8
              Conn. characterset: utf8
              TCP port: 3306
              Uptime: 44 min 49 sec

              Threads: 2 Questions: 16 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 27 Queries per second avg: 0.005
              --------------

              mysql>


              If this connection is not using SSL, you'll get:



              SSL:            Not in use


              You can also use:



              mysql> SHOW STATUS LIKE 'Ssl_cipher';
              +---------------+--------------------+
              | Variable_name | Value |
              +---------------+--------------------+
              | Ssl_cipher | DHE-RSA-AES256-SHA |
              +---------------+--------------------+
              1 row in set (0.00 sec)

              mysql>


              But I think the first is more attractive, and sure easier to type.






              share|improve this answer
























              • show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

                – Joao Costa
                Feb 13 at 16:54
















              28














              From the client, just run status. If this connection is using SSL, you'll get something interesting in the SSL row.



              mysql> status
              --------------
              mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1

              Connection id: 12
              Current database:
              Current user: replicator@domU-12-31-39-10-54-BD.compute-1.internal
              SSL: Cipher in use is DHE-RSA-AES256-SHA
              Current pager: stdout
              Using outfile: ''
              Using delimiter: ;
              Server version: 5.5.30-log MySQL Community Server (GPL)
              Protocol version: 10
              Connection: boston.hugskeep.wstudent.com via TCP/IP
              Server characterset: latin1
              Db characterset: latin1
              Client characterset: utf8
              Conn. characterset: utf8
              TCP port: 3306
              Uptime: 44 min 49 sec

              Threads: 2 Questions: 16 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 27 Queries per second avg: 0.005
              --------------

              mysql>


              If this connection is not using SSL, you'll get:



              SSL:            Not in use


              You can also use:



              mysql> SHOW STATUS LIKE 'Ssl_cipher';
              +---------------+--------------------+
              | Variable_name | Value |
              +---------------+--------------------+
              | Ssl_cipher | DHE-RSA-AES256-SHA |
              +---------------+--------------------+
              1 row in set (0.00 sec)

              mysql>


              But I think the first is more attractive, and sure easier to type.






              share|improve this answer
























              • show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

                – Joao Costa
                Feb 13 at 16:54














              28












              28








              28







              From the client, just run status. If this connection is using SSL, you'll get something interesting in the SSL row.



              mysql> status
              --------------
              mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1

              Connection id: 12
              Current database:
              Current user: replicator@domU-12-31-39-10-54-BD.compute-1.internal
              SSL: Cipher in use is DHE-RSA-AES256-SHA
              Current pager: stdout
              Using outfile: ''
              Using delimiter: ;
              Server version: 5.5.30-log MySQL Community Server (GPL)
              Protocol version: 10
              Connection: boston.hugskeep.wstudent.com via TCP/IP
              Server characterset: latin1
              Db characterset: latin1
              Client characterset: utf8
              Conn. characterset: utf8
              TCP port: 3306
              Uptime: 44 min 49 sec

              Threads: 2 Questions: 16 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 27 Queries per second avg: 0.005
              --------------

              mysql>


              If this connection is not using SSL, you'll get:



              SSL:            Not in use


              You can also use:



              mysql> SHOW STATUS LIKE 'Ssl_cipher';
              +---------------+--------------------+
              | Variable_name | Value |
              +---------------+--------------------+
              | Ssl_cipher | DHE-RSA-AES256-SHA |
              +---------------+--------------------+
              1 row in set (0.00 sec)

              mysql>


              But I think the first is more attractive, and sure easier to type.






              share|improve this answer













              From the client, just run status. If this connection is using SSL, you'll get something interesting in the SSL row.



              mysql> status
              --------------
              mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1

              Connection id: 12
              Current database:
              Current user: replicator@domU-12-31-39-10-54-BD.compute-1.internal
              SSL: Cipher in use is DHE-RSA-AES256-SHA
              Current pager: stdout
              Using outfile: ''
              Using delimiter: ;
              Server version: 5.5.30-log MySQL Community Server (GPL)
              Protocol version: 10
              Connection: boston.hugskeep.wstudent.com via TCP/IP
              Server characterset: latin1
              Db characterset: latin1
              Client characterset: utf8
              Conn. characterset: utf8
              TCP port: 3306
              Uptime: 44 min 49 sec

              Threads: 2 Questions: 16 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 27 Queries per second avg: 0.005
              --------------

              mysql>


              If this connection is not using SSL, you'll get:



              SSL:            Not in use


              You can also use:



              mysql> SHOW STATUS LIKE 'Ssl_cipher';
              +---------------+--------------------+
              | Variable_name | Value |
              +---------------+--------------------+
              | Ssl_cipher | DHE-RSA-AES256-SHA |
              +---------------+--------------------+
              1 row in set (0.00 sec)

              mysql>


              But I think the first is more attractive, and sure easier to type.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 16 '13 at 21:22









              Jeremy WadhamsJeremy Wadhams

              583512




              583512













              • show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

                – Joao Costa
                Feb 13 at 16:54



















              • show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

                – Joao Costa
                Feb 13 at 16:54

















              show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

              – Joao Costa
              Feb 13 at 16:54





              show status like 'Ssl_version' can also be useful to determine the SSL/TLS protocol version being used.

              – Joao Costa
              Feb 13 at 16:54













              1














              This is applicable to mariadb mysql (haven't tried in pure mysql):



              mysql -h xxx.xxx.xxx.xxx -u testuser --ssl



              '--ssl' will tell you if ssl is enabled, without, it will say 'not in use'






              share|improve this answer




























                1














                This is applicable to mariadb mysql (haven't tried in pure mysql):



                mysql -h xxx.xxx.xxx.xxx -u testuser --ssl



                '--ssl' will tell you if ssl is enabled, without, it will say 'not in use'






                share|improve this answer


























                  1












                  1








                  1







                  This is applicable to mariadb mysql (haven't tried in pure mysql):



                  mysql -h xxx.xxx.xxx.xxx -u testuser --ssl



                  '--ssl' will tell you if ssl is enabled, without, it will say 'not in use'






                  share|improve this answer













                  This is applicable to mariadb mysql (haven't tried in pure mysql):



                  mysql -h xxx.xxx.xxx.xxx -u testuser --ssl



                  '--ssl' will tell you if ssl is enabled, without, it will say 'not in use'







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 9 at 22:50









                  user2677034user2677034

                  111




                  111























                      0














                      force SSL per user



                      alter user 'my_user'@'%' REQUIRE SSL;


                      mysql> s





                      share








                      New contributor




                      Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        force SSL per user



                        alter user 'my_user'@'%' REQUIRE SSL;


                        mysql> s





                        share








                        New contributor




                        Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          force SSL per user



                          alter user 'my_user'@'%' REQUIRE SSL;


                          mysql> s





                          share








                          New contributor




                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          force SSL per user



                          alter user 'my_user'@'%' REQUIRE SSL;


                          mysql> s






                          share








                          New contributor




                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share


                          share






                          New contributor




                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 2 mins ago









                          Mary CiriceanMary Ciricean

                          1




                          1




                          New contributor




                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Mary Ciricean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Database Administrators Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f36776%2fhow-can-i-verify-im-using-ssl-to-connect-to-mysql%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Anexo:Material bélico de la Fuerza Aérea de Chile Índice Aeronaves Defensa...

                              Always On Availability groups resolving state after failover - Remote harden of transaction...

                              update json value to null Announcing the arrival of Valued Associate #679: Cesar Manara ...