Cursor certificate issue with java/spring project

I am getting this error in cursor when opening java/spring project.

Failed to fetch Generation from Spring IO: I/O error on GET request for “https://api.spring.io/projects”: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

this project working fine in Intellij.