其他分享
首页 > 其他分享> > [AWS] Solve CodeBuild Issue: Certificate verification failed: The certificate is NOT trusted

[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

 

标签:certificate,Certificate,AWS,apt,failed,verification,CodeBuild
来源: https://www.cnblogs.com/grandyang/p/15375682.html