How to check if a user requires SSL in Mysql?

committedandroider

I'am testing with an AWS RDS Mysql instance with Mysql verison 5.7.22.

After requiring ssl for a specific user, 'root' (GRANT USAGE ON . TO 'root'@'%' REQUIRE SSL;"), this is the result of SHOW GRANTS for root;

+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for root@%                                                                                                                                                                                                                                                                                                              |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD,
  PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, 
 CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, 
 REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, 
ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO 'root'@'%' 
 WITH GRANT OPTION |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Is there anyway I can check to see that ssl is required for a user? Show grants output doesn't mention ssl. I would think that Show grants is the right command to use because ssl was initially required on the user via GRANT USAGE.

committedandroider

One thing I found was that from the client, you can run status to determine if the current connection is using ssl. Not sure if there's a way to do it for a specific user though.

Edit

Chris White's solution(MySQL: REQUIRE SSL not shown in grants) works for a specific user

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to use xargs with a command that requires user input?

分類Dev

How to use xargs with a command that requires user input?

分類Dev

How to check if a domain has a ssl certificate in python?

分類Dev

How to check is a user is in a Domain group?

分類Dev

How to test a CPAN package that requires having user credentials

分類Dev

how to check if the user is a normal user or an admin user PHP

分類Dev

How to check performance of mysql query?

分類Dev

Java how to check if mysql is running

分類Dev

How to check duplicate value in MySQL

分類Dev

How to check whether a user is authenticated or not in Firebase?

分類Dev

How to check and store whether user is logged in correctly?

分類Dev

How to check if Redshift user can alter table

分類Dev

How to check if the user has entered a single letter?

分類Dev

How to check event scheduler status mysql

分類Dev

Check if method requires a parameter using annotation and reflect

分類Dev

How to revoke MySQL user privileges for one table?

分類Dev

How to check if a user is logged in via Facebook in Firebase Auth

分類Dev

How can I check if a scroll was done by code or by user?

分類Dev

How do I check if the user clicked inside the current component?

分類Dev

How to check if user is authenticated in Firebase and Express/Node.js?

分類Dev

Laravel 5 how to check User exists in my other table

分類Dev

How to check the user owns our game in steam by web api?

分類Dev

How to check if user disable Google text to speech from Application manager

分類Dev

how to check if app is installed in user device when redirecting from deeplink

分類Dev

How can i check if user is authenticated more efficently in react?

分類Dev

How to check if two user-drawn (squiggly) lines intersect?

分類Dev

How to check if user has logged-in for the first time?

分類Dev

How to check if a user is authenticated in ASP.NET Core

分類Dev

How can i check that a user is 12 and over sql

Related 関連記事

  1. 1

    How to use xargs with a command that requires user input?

  2. 2

    How to use xargs with a command that requires user input?

  3. 3

    How to check if a domain has a ssl certificate in python?

  4. 4

    How to check is a user is in a Domain group?

  5. 5

    How to test a CPAN package that requires having user credentials

  6. 6

    how to check if the user is a normal user or an admin user PHP

  7. 7

    How to check performance of mysql query?

  8. 8

    Java how to check if mysql is running

  9. 9

    How to check duplicate value in MySQL

  10. 10

    How to check whether a user is authenticated or not in Firebase?

  11. 11

    How to check and store whether user is logged in correctly?

  12. 12

    How to check if Redshift user can alter table

  13. 13

    How to check if the user has entered a single letter?

  14. 14

    How to check event scheduler status mysql

  15. 15

    Check if method requires a parameter using annotation and reflect

  16. 16

    How to revoke MySQL user privileges for one table?

  17. 17

    How to check if a user is logged in via Facebook in Firebase Auth

  18. 18

    How can I check if a scroll was done by code or by user?

  19. 19

    How do I check if the user clicked inside the current component?

  20. 20

    How to check if user is authenticated in Firebase and Express/Node.js?

  21. 21

    Laravel 5 how to check User exists in my other table

  22. 22

    How to check the user owns our game in steam by web api?

  23. 23

    How to check if user disable Google text to speech from Application manager

  24. 24

    how to check if app is installed in user device when redirecting from deeplink

  25. 25

    How can i check if user is authenticated more efficently in react?

  26. 26

    How to check if two user-drawn (squiggly) lines intersect?

  27. 27

    How to check if user has logged-in for the first time?

  28. 28

    How to check if a user is authenticated in ASP.NET Core

  29. 29

    How can i check that a user is 12 and over sql

ホットタグ

アーカイブ