// certificate alias name
String certNickname = getCertNickname(ctx, instanceName);
// available trust stores
SecuritySupportImpl ssi = new SecuritySupportImpl();
KeyStore[] trustStore = ssi.getTrustStores();
for (int i=0; i<trustStore.length; i++) {
cert = trustStore[i].getCertificate(certNickname);
if (cert != null) {
// found target