Maybe you would like to try out JwsclCertificates which can be found here:
JWSCL
I suggest download from the code repository to get the latest version.
You should also read how to set it up the correct way if you are not familiar with it
Howto
You then could use e.g.:
isTrustedCert := JwIsFileTrusted...
regards
s!