RFR: 8360564: Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview) [v4]
Anthony Scarpino
ascarpino at openjdk.org
Wed Oct 15 17:12:26 UTC 2025
On Tue, 14 Oct 2025 18:03:56 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> "PRIVATE KEY" is earlier in the list and "RSA PRIVATE KEY" is a valid type.
>
> Ok, but is it really common? All the others are listed in RFC 7468 but not this one.
Yes, it is the PKCS#1 standard. RSA PRIVATE KEY was an OpenSSL standard for a long time and only recently changed to PRIVATE KEY. MacOS (15.7.1), which is LibreSSL, still uses RSA PRIVATE KEY by default. It's probably used more often than half of the above list.
>> This was a @wangweij comment from the first preview that syntax error are not recoverable and should be IOE.
>
> You mean they are recoverable? Otherwise it should probably be an IAE.
not recoverable such that reading from the stream is stopped.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2430691201
PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2433356041
More information about the security-dev
mailing list