code: private static URI[] getDistributionPoints(final X509Certificate cert) {
          try {
              val points = new ExtensionReader(cert).readCRLDistributionPoints();
              val urls = new ArrayList<URI>();
              if (points != null) {
                  points.stream().map(DistributionPoint::getDistributionPoint).filter(Objects::nonNull).forEach(pointName -> {
                      val nameSequence = ASN1Sequence.getInstance(pointName.getName());
                      IntStream.range(0, nameSequence.size()).mapToObj(i -> GeneralName.getInstance(nameSequence.getObjectAt(i))).forEach(name -> {
                          LOGGER.debug("Found CRL distribution point [{}].", name);
                          try {
                              addURL(urls, DERIA5String.getInstance(name.getName()).getString());
                          } catch (final Exception e) {
                              LOGGER.warn("[{}] not supported. String or GeneralNameList expected.", pointName);
                          }
                      });
                  });
              }
              return urls.toArray(URI[]::new);
          } catch (final Exception e) {
              LOGGER.error("Error reading CRLDistributionPoints extension field on [{}]", CertUtils.toString(cert), e);
              return new URI[0];
          }
      }
docs: Gets the distribution points.
  
  @param cert the cert
  @return the url distribution points