close

[Solved] fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing following error while deployment fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am facing following error while deployment.

“build”: go: gopkg.in/[email protected]: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /layers/google.go.gomod/gopath/pkg/mod/cache/vcs/5ea86ba1b933025fb7a7a539058d4acea777e0b3175c573a70130f7ea565323f: exit status 128: Step #2 – “build”: fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

How To Solve fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed Error ?

  1. How To Solve fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed Error ?

    To Solve fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed Error You need to just change build image to latest ubuntu 20.04. And then update package ca-certificates. Use this command. sudo apt-get update and then sudo apt-get install –reinstall ca-certificates Second solution is You Just need to update ca-certificates and libgnutls30 Using this command. RUN apt update && apt install ca-certificates libgnutls30 -y.

  2. fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed

    To Solve fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed Error You need to just change build image to latest ubuntu 20.04. And then update package ca-certificates. Use this command. sudo apt-get update and then sudo apt-get install –reinstall ca-certificates Second solution is You Just need to update ca-certificates and libgnutls30 Using this command. RUN apt update && apt install ca-certificates libgnutls30 -y.

Solution 1: re-install package ca-certificates

You need to just change build image to latest ubuntu 20.04. And then update package ca-certificates. Use this command.

sudo apt-get update

Then,

sudo apt-get install --reinstall ca-certificates

And my error solved.

Solution 2: Update ca-certificates and libgnutls30

You Just need to update ca-certificates and libgnutls30 Using this command.

RUN apt update && apt install ca-certificates libgnutls30 -y

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment