Mariadb refuses login for wordpress admin despite proper credentials

This issue came out of the blue after an update. I am beginning to suspect this is either a bug or SSL related. i have strict tls enabled through cloudflare.

[Mon Aug 07 19:11:00.497318 2023] [ssl:error] [pid 1228:tid 1228] AH02604: Unable to configure certificate www.*:443:0 for stapling
[Mon Aug 07 19:11:00.532360 2023] [ssl:error] [pid 1228:tid 1228] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=CloudFlare Origin Certificate,OU=CloudFlare Origin CA,O=CloudFlare\\, Inc. / issuer: OU=CloudFlare Origin SSL ECC Certificate Authority,O=CloudFlare\\, Inc.,L=San Francisco,ST=California,C=US / serial: 292075B3628890A1F87AE9732FA1BFC980ECBBC9 / notbefore: Jul 11 15:02:00 2023 GMT / notafter: Jul  7 15:02:00 2038 GMT]
[Mon Aug 07 19:11:00.532368 2023] [ssl:error] [pid 1228:tid 1228] AH02604: Unable to configure certificate www.*:443:0 for stapling

This error stands out to me as a possible culprit. But curl produces no error when i use the private key and certificate. i’ve configured mariadb to use the same key files and it doesnt produce any errors (other than refusing log in for wordpress. Am i supposed to use the cloudflare API key as a environment variable for the handshake to work? It makes no sense to me that this would be happening since i have other sub domains which have no issues connecting to the database. I know this is an unusual problem considering the time it’s been taking me to fix it and the lack of information about it on the internet.
Anyone have any leads? Thanks in advance.