code: public static CertPath getCertPath(X509Certificate[] certs) throws CertificateException {
  
          CertificateFactory factory = CertificateFactory.getInstance("X.509");
          return factory.generateCertPath(Arrays.asList(certs));
      }
docs: JGLOBUS-91