code: public static List<Certificate> loadCertificates(final String certpem) throws IOException,
              CertificateException {
          final StringReader certReader = new StringReader(certpem);
          try (BufferedReader reader = new BufferedReader(certReader)) {
              return loadCertificates(reader);
          }
      }
docs: from "cert.pem" String