Tiny Core Extensions > TCE Bugs
ca-certificates needs folder made to get ssl working when preinstalled
(1/1)
HotNoob:
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?
Rich:
Hi HotNoob
--- Quote from: HotNoob on October 13, 2022, 06:23:56 PM --- ... maybe missing some feature for the tcz packages?
--- End quote ---
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: ---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:~$
--- End code ---
Navigation
[0] Message Index
Go to full version