[AWS] Solve CodeBuild Issue: Certificate verification failed: The certificate is NOT trusted


 

If the CodeBuild failed with following issue:

 

Err:4 https://deb.nodesource.com/node_14.x focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  
Could not handshake: Error in the certificate verification.

 

Try to add the following command before installing the node in your buildspec.yml file:

 

- apt-get update
- echo Installing Certificate...
- apt-get install ca-certificates

 

References:

https://github.com/nodesource/distributions/issues/1266

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM