This error indicates the certificate presented by the server is not trusted. It is possible some other entity is responding to you instead of services.gradle.com. When I use a web browser to open https://services.gradle.org, I can see a valid certificate. You should try the same.
This could happen if you are connected to some public wifi that intercepts all traffic until you login or accept some user agreement.