Skip to main content

I have a SSL certificate problem on BitBucket pipelines. How do I solve it?

Issue

I am building on BitBucket pipelines and I'm getting the following error:

error: API request failed
caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: unable to get local issuer certificate)

Applies To

  • Paying SaaS Customers

  • Integrations

  • BitBucket

Resolution

The error SSL certificate problem: unable to get local issuer certificate is caused by the misconfiguration of the SSL certificate on your local machine. Please check if your local certificate store is up to date and try again.

One command to install the certificate in Linux-based systems is:

apt-get update && apt-get install -y ca-certificates
Did this answer your question?