[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

 

posted @ 2021-10-07 12:55  Grandyang  阅读(782)  评论(0编辑  收藏  举报
Fork me on GitHub