I’ve solved this in MySQL by mapping a local folder into the n8n container (i’m using Docker) like this:
- ./pki:/opt/custom-certificates
And adding the self signed certificates to that local pki folder in .pem format. Restart docker and they will validate.