Skip to content
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

curl not functional in newly built image #478

Closed
marcone opened this issue Dec 10, 2020 · 3 comments
Closed

curl not functional in newly built image #478

marcone opened this issue Dec 10, 2020 · 3 comments

Comments

@marcone
Copy link
Contributor

marcone commented Dec 10, 2020

I built a 'lite' image using pi-gen (so stages 0-2, but not 3 and further), but while the resulting image boots just fine, curl doesn't work on it:

$ curl https:///www.example.com
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

This can be fixed by running /usr/sbin/update-ca-certificates --fresh (or alternatively apt remove ca-certificates followed by apt install ca-certificates), which would seem to imply that when the package is installed by pi-gen, it is missing this step.

@jimmy1248
Copy link

jimmy1248 commented Apr 16, 2021

I can confirm that I am having the same issue. The fix works when you boot the image. I am building the lite image on a Buster VM.

The pre-built version here https://www.raspberrypi.org/software/operating-systems/ does work with curl out of the box.

The fix doesn't work when you want to use curl during the build.

@jketterl
Copy link

This may be related to #271.

@XECDesign
Copy link
Member

Duplicate of #271

@XECDesign XECDesign marked this as a duplicate of #271 Sep 8, 2021
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

No branches or pull requests

4 participants