Peer's Certificate issuer is not recognized

Hi Team,
I’m facing below error while running Jenkins freestyle job
I’m trying to fetch code from bitbucket getting below certificate error.
Please provide solution.
Failed to connect to repository : Command “/usr/bin/git ls-remote -h https://nimmakayala.reddy@bitbucket.edelweissfin.com/scm/platformmw/web-services.git HEAD” returned status code 128:
stdout:
stderr: fatal: unable to access ‘https://nimmakayala.reddy@bitbucket.edelweissfin.com/scm/platformmw/web-services.git/’: Peer’s Certificate issuer is not recognized.

There seems to be a workable recommendation on stackoverflow. Either install the SSL certificate on the controller and the agent or switch to use SSH protocol instead of HTTPS protocol