<div dir="auto"><div>Hi Sean,</div><div dir="auto"><br></div><div dir="auto">Yes, I can help with this new PEM API.</div><div dir="auto"><br></div><div dir="auto">Let me know, when there is something to review.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto"><br></div><div dir="auto">Karl </div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Oct 17, 2023, 19:12 Sean Mullan <<a href="mailto:sean.mullan@oracle.com">sean.mullan@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">
Hi Karl,
<div><br>
</div>
<div>I discussed your proposal with some other colleagues. </div>
<div><br>
</div>
<div>We generally feel a PEM KeyStore would be a useful addition to the JDK. This would alleviate usability issues that many users encounter when configuring and deploying applications that store keys or certificates in PEM files.</div>
<div><br>
</div>
<div>However, we would like to first make sure that your PEM KeyStore implementation will work well with the PEM API that we will be proposing soon. We think this is a perfect opportunity to ensure they work well together and would appreciate your
help in reviewing and validating the API - would you be interested in helping out?</div>
<div><br>
</div>
<div>Once that is done, we can discuss next steps.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sean</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Oct 5, 2023, at 9:41 AM, Sean Mullan <<a href="mailto:sean.mullan@oracle.com" target="_blank" rel="noreferrer">sean.mullan@oracle.com</a>> wrote:</div>
<br>
<div>
<div style="word-wrap:break-word;line-break:after-white-space">
<br>
<div><br>
<blockquote type="cite">
<div>On Oct 5, 2023, at 2:48 AM, Karl Scheibelhofer <<a href="mailto:karl.scheibelhofer@gmx.net" target="_blank" rel="noreferrer">karl.scheibelhofer@gmx.net</a>> wrote:</div>
<br>
<div>
<div dir="auto">
<div>Hi Sean,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yes, I had a look at the Contributing docs at the OpenJDK site before. I also signed the OCA.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
Great, thanks.</div>
<div><br>
<blockquote type="cite">
<div>
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">Honestly, I thought there would be some more reaction on the suggested PEM KeyStore. It would really be good to discuss the topic with others. Is there anything we can do to get others in sharing their thoughts on this?</div>
</div>
</div>
</blockquote>
<div><br>
</div>
I think there is a fair amount of interest in it, but reviewing something significant like this takes a bit of time, as I mentioned in my prior email. Also, if we do decide to accept the contribution, we want to make sure it works well with the PEM API that
we are working on - we hope to have a draft of a JEP for that out in the next few weeks. So I think we probably need a few weeks to review your contribution.</div>
<div><br>
<blockquote type="cite">
<div>
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">There is already a fair amount of documentation und unit tests. See
<a href="https://github.com/KarlScheibelhofer/java-crypto-tools/" target="_blank" rel="noreferrer">https://github.com/KarlScheibelhofer/java-crypto-tools/</a> .</div>
</div>
</div>
</blockquote>
<div><br>
</div>
Ok.</div>
<div><br>
</div>
<div>—Sean</div>
<div><br>
<blockquote type="cite">
<div>
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">Best regards, </div>
<div dir="auto">Karl<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Wed, Oct 4, 2023, 13:58 Sean Mullan <<a href="mailto:sean.mullan@oracle.com" target="_blank" rel="noreferrer">sean.mullan@oracle.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Karl,<br>
<br>
The OpenJDK Developer’s Guide includes a helpful section on Contributing to an OpenJDK Project [1]. I suggest you read through that if you have not already. In particular, have you signed the OCA? I don’t want to review your code/contribution until that is
done.<br>
<br>
For this particular contribution, I don’t think there has been enough discussion and evaluation from members of the Security project. This would be a fairly major contribution. Keep in mind that a contribution doesn’t mean the work ends there. There would
need to be documentation, tests, and ongoing support for the foreseeable future. We need to think about these aspects every time we add a new feature, so there needs to be a strong motivation for doing it.<br>
<br>
Thanks,<br>
Sean<br>
<br>
[1] <a href="https://openjdk.org/guide/#contributing-to-an-openjdk-project" rel="noreferrer noreferrer noreferrer" target="_blank">
https://openjdk.org/guide/#contributing-to-an-openjdk-project</a><br>
<br>
> On Oct 4, 2023, at 4:21 AM, Karl Scheibelhofer <<a href="mailto:karl.scheibelhofer@gmx.net" rel="noreferrer noreferrer" target="_blank">karl.scheibelhofer@gmx.net</a>> wrote:<br>
> <br>
> Hi All,<br>
> <br>
> I would like to contribute my PEM KeyStore implementation to the<br>
> OpenJDK, including integration in the OpenJDK source and creating a<br>
> pull request.<br>
> What is the recommended way to do this?<br>
> Who can create a suitable ticket in OpenJDK to document the<br>
> enhancement and to track the progress?<br>
> <br>
> What are the requirements for a pull request to get merged?<br>
> <br>
> Best regards<br>
> <br>
> Karl<br>
> <br>
> Am Mi., 20. Sept. 2023 um 11:26 Uhr schrieb Karl Scheibelhofer<br>
> <<a href="mailto:karl.scheibelhofer@gmx.net" rel="noreferrer noreferrer" target="_blank">karl.scheibelhofer@gmx.net</a>>:<br>
>> <br>
>> Hi Tony!<br>
>> <br>
>> When the PEM API implementation becomes available it would make sense<br>
>> to use it inside the PEM Keystore implementation. It will reduce the<br>
>> code (the internal classes PemReader und PemWriter may become<br>
>> obsolete), but it does not affect the functionality of the PEM<br>
>> keystore. Users of the PEM Keystore won't experience a difference.<br>
>> <br>
>> Let me know when there is something for the PEM API and I will see if<br>
>> I can assist.<br>
>> <br>
>> I would suggest starting with PEM Keystore now and not wait for the<br>
>> PEM API, because the time schedule for it seems vague. I would try to<br>
>> refactor my current PEM Keystore implementation to integrate in the<br>
>> OpenJDK sun.security.provider package. I do not expect any API changes<br>
>> or other compatibility issues with existing code. Then consult this<br>
>> group for feedback before creating a pull request.<br>
>> <br>
>> When the PEM API becomes available, rework the PEM Keystore<br>
>> implementation to use it internally.<br>
>> <br>
>> What do you think?<br>
>> <br>
>> Best regards<br>
>> <br>
>> Karl Scheibelhofer<br>
>> <br>
>> Am Di., 19. Sept. 2023 um 22:31 Uhr schrieb Anthony Scarpino<br>
>> <<a href="mailto:anthony.scarpino@oracle.com" rel="noreferrer noreferrer" target="_blank">anthony.scarpino@oracle.com</a>>:<br>
>>> <br>
>>> There are no doc links yet.<br>
>>> <br>
>>> Tony<br>
>>> <br>
>>> On 9/10/23 1:04 AM, Karl Scheibelhofer wrote:<br>
>>>> Hi Tony,<br>
>>>> <br>
>>>> The motivation was mostly about reading PEM keys and certificates<br>
>>>> generated somewhere else. This is common practice in enterprise<br>
>>>> environments I work in. Because corporate key material is subject to<br>
>>>> centralized key management, including generation, backup and rollover.<br>
>>>> PEM is the format most software products can handle. For Java<br>
>>>> applications, having a PEM KeyStore would reduce the often required<br>
>>>> additional step of converting PEM key and certificate in a Java<br>
>>>> Keystore/PKCS#12.<br>
>>>> Even truststores handling is easier with individual PEM certificates<br>
>>>> instead of a single PKCS#12 Truststore. Adding or deleting a single<br>
>>>> file instead of replacing the complete PKCS#12 store is less error<br>
>>>> prone and cleaner to track in version control. The additional benefit<br>
>>>> of a MAC in PKCS#12 adds little to no security in most cases.<br>
>>>> And being text based, PEM is more version control friendly than binary PKCS#12.<br>
>>>> <br>
>>>> But to enable sound support of PEM, I also implemented writing PEM<br>
>>>> keys and certificates. This way, one can use the JDK keytool to<br>
>>>> generate key and certificate signing requests in PEM format. Getting<br>
>>>> the certificate from the CA in PEM, one can use PEM throughout the<br>
>>>> process.<br>
>>>> <br>
>>>> Do you have any links or documentation on the PEM API JEP that you mentioned?<br>
>>>> <br>
>>>> Thank you for your feedback and best regards<br>
>>>> <br>
>>>> Karl<br>
>>>> <br>
>>>> Am Fr., 8. Sept. 2023 um 21:17 Uhr schrieb Anthony Scarpino<br>
>>>> <<a href="mailto:anthony.scarpino@oracle.com" rel="noreferrer noreferrer" target="_blank">anthony.scarpino@oracle.com</a>>:<br>
>>>>> <br>
>>>>> Hi Karl<br>
>>>>> <br>
>>>>> The keystore is interesting and may have some value. Was your use case<br>
>>>>> mostly reading PEM keys and certificates generated elsewhere for use<br>
>>>>> with a particular application, maybe webservers? Did you see value in<br>
>>>>> writing to this keystore from Java?<br>
>>>>> <br>
>>>>> On the topic of PEM, I hope before the end of the year to have a PEM API<br>
>>>>> JEP. I would be interested in your API feedback from your keystore<br>
>>>>> experiences. I think if this keystore contribution was accepted, it<br>
>>>>> should wait so it can use that API.<br>
>>>>> <br>
>>>>> thanks<br>
>>>>> <br>
>>>>> Tony<br>
>>>>> <br>
>>>>> <br>
>>>>> On 9/1/23 12:15 PM, Karl Scheibelhofer wrote:<br>
>>>>>> Hi,<br>
>>>>>> <br>
>>>>>> Working with Java and the JCA KeyStore for decades, I came across<br>
>>>>>> many situations where I thought it would be convenient to be<br>
>>>>>> able to load private keys and certificates in PEM format directly<br>
>>>>>> using the KeyStore API. Without the need to convert them to PKCS#12/JKS.<br>
>>>>>> <br>
>>>>>> You can find my implementation of a PEM KeyStore in<br>
>>>>>> <a href="https://urldefense.com/v3/__https://github.com/KarlScheibelhofer/java-crypto-tools__;!!ACWV5N9M2RV99hQ!Oty2x6ce8fseqwbwEZ1eFN9xJCtVxU8aUXn1GXt81SA1JkTeB9GSykdwShzJKOFYUAA1oUtLGaX1kmZV984WRsO-8KQq5dw$" rel="noreferrer noreferrer noreferrer" target="_blank">
https://urldefense.com/v3/__https://github.com/KarlScheibelhofer/java-crypto-tools__;!!ACWV5N9M2RV99hQ!Oty2x6ce8fseqwbwEZ1eFN9xJCtVxU8aUXn1GXt81SA1JkTeB9GSykdwShzJKOFYUAA1oUtLGaX1kmZV984WRsO-8KQq5dw$</a> .<br>
>>>>>> <br>
>>>>>> I wondered if it would make sense to integrate such an implementation<br>
>>>>>> in one of the standard providers of OpenJDK - like the SUN provider.<br>
>>>>>> What do you think?<br>
>>>>>> <br>
>>>>>> Best regards<br>
>>>>>> <br>
>>>>>> Karl<br>
<br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote></div></div></div>