Skip to main content

SSL certificate problem on BitBucket pipelines

Updated over a month ago

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 with:

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