Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: HotNoob on October 13, 2022, 03:23:56 PM

Title: ca-certificates needs folder made to get ssl working when preinstalled
Post by: HotNoob on October 13, 2022, 03:23:56 PM
the ca-certificates is missing the
/usr/local/etc/ssl/certs/ folder. and when update-ca-certificates is ran, it errors out saying the folder was not found.

need /usr/local/etc/ssl/certs/ca-certificates.crt for ssl, donno if possible or good but would be nice if that was included?

for a workaround, ive just been making the folder structure on boot and running update-ca-certificates.

---
works as intended if you install via tce-load, rather than preinstalling it...

could also just be my script that i wrote to make images... maybe missing some feature for the tcz packages?
Title: Re: ca-certificates needs folder made to get ssl working when preinstalled
Post by: Rich on October 13, 2022, 05:17:28 PM
Hi HotNoob
... maybe missing some feature for the tcz packages?
That's probably it. Packages that need to run extra commands after installation place
them in a script in  /usr/local/tce.installed/PackageName, in this case:
Code: [Select]
tc@E310:~$ cat /usr/local/tce.installed/ca-certificates
#!/bin/sh
if [ ! -d /usr/local/etc ]; then
        mkdir -p /usr/local/etc
fi
if [ ! -f /usr/local/etc/ca-certificates.conf ]; then
        cp -p /usr/local/share/ca-certificates/files/ca-certificates.conf /usr/local/etc
fi

update-ca-certificates
ln -s /usr/local/etc/ssl/certs/ca-certificates.crt /usr/local/etc/ssl/cacert.pem
ln -s /usr/local/etc/ssl/certs/ca-certificates.crt /usr/local/etc/ssl/ca-bundle.crt
tc@E310:~$