After searching for the last couple of days, just after posting this I stumbled upon the solution in this unrelated thread:
Resolved - Issues with Grafana / Advanced monitoring
It seems the openssl installation was corrupted, reinstalling fixed the issue.
# mv /usr/lib/ssl /root/ssl.saved
#...