. Advertisement .
..3..
. Advertisement .
..4..
When we try to upload our work, we face the fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed error. If you’re facing a similar issue, let us explain all possible solutions in the following post. Keep reading!
What Causes fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed Error?
During deploying our work, we are encountering the following issue.
‘https://gopkg.in/yaml.v3/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
How To Solve It?
To fix the error, modify the build image to the most recent Ubuntu 20.04. Then, upgrade the ca-certificates package. Apply sudo apt-get update, then sudo apt-get install –reinstall ca-certificates.
The second option is to update ca-certificates and libgnutls30. Use the RUN apt update && apt install ca-certificates libgnutls30 -y command.
The Solutions
Solution 1
Modify the build image to the most recent Ubuntu 20.04. Then, update the package ca-certificates. Make use of this command.
sudo apt-get update
Then use sudo apt-get install –reinstall ca-certificates to solve your problem.
Solution 2
For the second solution, you must upgrade the ca-certificates and libgnutls30 modules to resolve the issue. Use the following command.
RUN apt update && apt install ca-certificates libgnutls30 -y
And your problem is fixed.
Conclusion
Thank you for viewing our blog post on solving fatal: unable to access ‘https://gopkg.in/yaml.v3/’: server certificate verification failed. We trust this information has been beneficial to you. Please leave in the comments any additional thoughts concerning this issue.
Also, please send us any solutions that may suit you best. We are always helping you search for the best answers to your issues.
Leave a comment