Prepare analysis on sonarqube using azure devops fail due to "code":"CERT_HAS_EXPIRED"

seems like this was an issue a year ago, but has been fixed, however, we were trying to scan our project on 07/3/2022 it is failing due to #[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“CERT_HAS_EXPIRED”} our last successful builds was on 06/23/2022
I tried to change our build agent to latest, change our sonarqube analysis plugin version to 5.x we were using 4.x but still getting same issue.

Did the certificate installed on your SonarQube server expire?