Thanks Filip. That was very helpful. I updated the uaa.yml with useSSL = true. I had to set trustServerCertificate to true as well otherwise it gives a handshake error.
If i want to validate the MySQL server certificate, then do I just add it to the cacerts truststore of the UAA server ?