Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stevemao opened this issue Mar 8, 2022 · 1 comment · Fixed by #111
Closed

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

stevemao opened this issue Mar 8, 2022 · 1 comment · Fixed by #111

Comments

@stevemao
Copy link
Contributor

stevemao commented Mar 8, 2022

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 added a commit to stevemao/aws-lambda-haskell-runtime that referenced this issue Mar 8, 2022
ca-certificates is outdated by default. Once it's updated we're able to install stack

Fixes theam#110
@stevemao
Copy link
Contributor Author

stevemao commented Mar 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant