code: boolean verifySigned(File keystore, Certificate agentCertificate) {
          try {
              KeyStore store = KeyStore.getInstance("JKS");
              FileInputStream inputStream = new FileInputStream(keystore);
              store.load(inputStream, PASSWORD_AS_CHAR_ARRAY);
              IOUtils.closeQuietly(inputStream);
              KeyStore.PrivateKeyEntry intermediateEntry = (KeyStore.PrivateKeyEntry) store.getEntry("ca-intermediate",
                      new KeyStore.PasswordProtection(PASSWORD_AS_CHAR_ARRAY));
              Certificate intermediateCertificate = intermediateEntry.getCertificate();
              agentCertificate.verify(intermediateCertificate.getPublicKey());
              return true;
          } catch (Exception e) {
              return false;
          }
      }
docs: Used for testing