"CERT_HAS_EXPIRED" error upgrading sonarqube to ver 6.7.7

Hi All,
I have upgraded my sonarqube community version from 6.1 to 6.7.7 lts and also upgraded the db from sql2012 t o sql2017 . Now I am able to login to sonarqube and view all the reports as it were in old db . When I try running a new analysis from my azure devops CI build I get the error below , on ‘Prepare Analysis for Sonarqube’ Task .

##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“CERT_HAS_EXPIRED”}
Finishing: Prepare analysis on SonarQube

I am using admin token to make sonarqube connection in azure devops build .
Can you please guide me on how we can fix this ?
Looking forward to hear from you .

Regards ,