Class PemReader

java.lang.Object
io.helidon.common.pki.PemReader

public final class PemReader extends Object
Reads a PEM file and converts it into a list of DERs so that they are imported into a KeyStore easily.
  • Method Details

    • readCertificates

      public static List<X509Certificate> readCertificates(InputStream certStream)
      Reads a certificate-based input stream and converts it to a list of X509Certificates.
      Parameters:
      certStream - cert input stream
      Returns:
      list of certificates