Skip to content

Commit

Permalink
DEBUG: the mariadb connection
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jul 28, 2022
1 parent e01a99d commit 9e55ef1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions check-ssl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python

import MySQLdb

config = {
'user': 'kiwi',
'password': 'kiwi',
'host': '127.0.0.1',
'ssl': {
# 'ca': '/home/senko/Kiwi/tests/db-certs/ca.pem',
# 'cert': '/home/senko/Kiwi/tests/db-certs/client-cert.pem',
# 'key': '/home/senko/Kiwi/tests/db-certs/client-key.pem',
}
}

db = MySQLdb.connect(**config)
cur = db.cursor()
cur.execute("SHOW STATUS LIKE 'Ssl_cipher'")
print(cur.fetchone())
cur.close()
db.close()

0 comments on commit 9e55ef1

Please sign in to comment.