zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

AWSFailed The not is certificate issue Solve
2023-09-11 14:21:36 时间

 

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