docs: public void addCACertificatesToTrustStore(BufferedInputStream bis) throws CryptoException, InvalidArgumentException {
  
          if (bis == null) {
              throw new InvalidArgumentException("The certificate stream bis cannot be null");
          }
  
          try {
              final Collection<? extends Certificate> certificates = cf.generateCertificates(bis);
              for (Certificate certificate : certificates) {
                  addCACertificateToTrustStore(certificate);
              }
  
          } catch (CertificateException e) {
              throw new CryptoException("Unable to add CA certificate to trust store. Error: " + e.getMessage(), e);
          }
      }