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;
}
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
add a comment |
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
add a comment |
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
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
mysql ssl
asked Mar 15 '13 at 14:35
chrischris
5324925
5324925
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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'
add a comment |
force SSL per user
alter user 'my_user'@'%' REQUIRE SSL;
mysql> s
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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'
add a comment |
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'
add a comment |
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'
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'
answered Feb 9 at 22:50
user2677034user2677034
111
111
add a comment |
add a comment |
force SSL per user
alter user 'my_user'@'%' REQUIRE SSL;
mysql> s
New contributor
add a comment |
force SSL per user
alter user 'my_user'@'%' REQUIRE SSL;
mysql> s
New contributor
add a comment |
force SSL per user
alter user 'my_user'@'%' REQUIRE SSL;
mysql> s
New contributor
force SSL per user
alter user 'my_user'@'%' REQUIRE SSL;
mysql> s
New contributor
New contributor
answered 2 mins ago
Mary CiriceanMary Ciricean
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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