On Wed, 20 May 2026 21:42:46 GMT, Solomon Ritzow <[email protected]> wrote:

> Does this API allow decoding PEM files containing lists of multiple arbitrary 
> PEM objects, or only a specific subset of multiple objects?
> 
> For example, an invocation of `openssl req -new -x509` will produce a PEM 
> file containing contents in the form:
> 
> ```
> -----BEGIN PRIVATE KEY-----
> CONTENTS HERE
> -----END PRIVATE KEY-----
> -----BEGIN CERTIFICATE-----
> CONTENTS HERE
> -----END CERTIFICATE-----
> ```
> 
> Is it possible to iterate over all PEM objects in a given data source? It 
> seems like a common operation someone would want to perform. Otherwise users 
> will have to fall back to manually parsing delimiters before feeding each 
> element individually into this API.

Yes it does.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29640#issuecomment-4509278363

Reply via email to