> these certificates were already being rejected by Chrome and Safari for having invalid SCTs
What's a good way to make an equivalent check from a script, if I want (in future) to be able to check whether I have a website whose certificate has such a problem?