WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ca-certificates needs folder made to get ssl working when preinstalled  (Read 1248 times)

Offline HotNoob

  • Newbie
  • *
  • Posts: 8
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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: ca-certificates needs folder made to get ssl working when preinstalled
« Reply #1 on: October 13, 2022, 08: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:~$