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 ) ; } }
from cert . pem String