I have enabled encrypted connections with my database (MariaDB) with
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'USER': 'xx',
'HOST': 'xx',
'PASSWORD': 'xx',
'NAME': 'xx',
'PORT': '',
'OPTIONS': {'ssl': True},
}
}
However, when Django tries to connect to the database, I get this error
django.db.utils.OperationalError: (2026, ‘SSL connection error: The message received was unexpected or badly formatted’)
and I have not found any solutions, and any help would be greatly appreciated!
Best, Mads