I have not been able to get the script from this post to work. How do I update my root certificates on an older version of macOS (e.g. El Capitan)? How do I update my root certificates on an older version of Mac OS (e.g. El Capitan)?
I have an old mac laptop running El Capitan 10.11.6 that I can't update the system on due to work apps. With the recent updated certificate problem, many internet sites are throwing errors for legitimate sites rendering the laptop fairly useless.
The post above has a script in it to update certificates that others have used successfully.
From the prior post answer:
- First find the more modern Mac with a working set of System Root certificates (i.e. that can access the problematic web sites)
- On that Mac, launch Keychain Access, select "System Roots", select all the certificates, select File > Export, and export them as
rootcerts.pem
file. This file will contain all the certificates concatenated. - Copy the
rootcerts.pem
file to your antique Mac. - Make the
trustroot
shell script below, e.g. by copying it into a file, then use:chmod 755 trustroot
- Run
sudo ./trustroot rootcerts.pem
#!/bin/bash
DIR=${TMPDIR}/trustroot.$$
mkdir -p ${DIR}
trap "rm -rf ${DIR}" EXIT
cat "$1" | (cd $DIR && split -p '-----BEGIN CERTIFICATE-----' - cert- )
for c in ${DIR}/cert-* ; do
security -v add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "$c"
done
rm -rf ${DIR}
Anyway, I bogged down when it came to using Terminal. Can someone please give me some total idiot, step by step directions? I was able to make and transfer the rootcerts.pem
file from a newer computer, but then it all fell apart.
Questions:
Where is the rootcerts.pem
file supposed to be filed on the old machine?
I opened Terminal and it shows my hard drive, and then what?
The directions say to make the script by copying it into a file.
I presume copying it into a file means copying the #!/bin/bash
section above into the Terminal shell?
Then you use: chmod 755 trustroot
Does that mean you copy chmod... into Terminal after adding the #!/bin/bash
section?
Next run sudo ./trustroot rootcerts.pem
I assumed that meant that you copy this into Terminal after chmod
?
Results:
After -----BEGIN CERTIFICATE-----' - cert- ), I get
cat: : No such file or directory
Then:
***Error reading file /var/folders/db/y44522y562b31ctgp11mz8000000gn/T//trustroot.1429/cert-*
I don't know what this means, which file has the problem, or how to correct the problem. Any ideas?
I tried looking up directions for using Terminal, but those directions don't seem to follow the steps here and I'm not sure what I'm missing and what corrections to make. I can do many things, but when it comes to Terminal, my brain shuts down.