theam / aws-lambda-haskell-runtime

⚡Haskell runtime for AWS Lambda
https://theam.github.io/aws-lambda-haskell-runtime/
Other
269 stars 48 forks source link

I get curl: (60) SSL certificate problem when running make #110

Closed stevemao closed 2 years ago

stevemao commented 2 years ago

This is what I do

stack new my-haskell-lambda https://github.com/theam/aws-lambda-haskell-runtime/raw/master/stack-template.hsfiles
cd my-haskell-lambda
make

And this is the failure

#10 [build  3/12] RUN curl -sSL https://get.haskellstack.org/ | sh
#10 sha256:ade20eaad4cb8e076f07d696c5a2918238dda45baa7020768863823a5e98953e
#10 0.959 curl: (60) SSL certificate problem: certificate has expired
#10 0.959 More details here: https://curl.haxx.se/docs/sslcerts.html
#10 0.959
#10 0.959 curl failed to verify the legitimacy of the server and therefore could not
#10 0.959 establish a secure connection to it. To learn more about this situation and
#10 0.959 how to fix it, please visit the web page mentioned above.
#10 DONE 1.0s

There's another error but I think it's caused by the error above

#16 [build  9/12] RUN stack clean --full
#16 sha256:7ccf9ea8ca2a2bdb67faa6f44e6f0f8c6e345ecf3ce898e7ea5d965c92fb883c
#16 0.230 /bin/bash: stack: command not found
#16 ERROR: executor failed running [/bin/bash --rcfile ~/.profile -c stack clean --full]: exit code: 127
------
 > [build  9/12] RUN stack clean --full:
------
executor failed running [/bin/bash --rcfile ~/.profile -c stack clean --full]: exit code: 127

When I run curl -sSL https://get.haskellstack.org/ | sh on my local machine, it works fine.

Anyone seen this error before?

stevemao commented 2 years ago

Turns out to be an easy fix. Not sure why nobody else had this problem before