-
Couldn't load subscription status.
- Fork 1
RH2023467: Enable FIPS keys export #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cherry-picked from akashche/jdk17u@bd3fdb6
Co-Authored-By: Martin Balao <mbalao@redhat.com>
|
@franferrax can you run a workflow on this branch from https://github.com/franferrax/jdk/actions/workflows/submit.yml ? I've enabled actions on this repository now, so hopefully it will be automatic in future. |
Sure, running: https://github.com/franferrax/jdk/actions/runs/2309360075 Just in case, I've left the |
That's fine. Yeah, I will do some local changes to the config tomorrow. We may as well leave Windows on in case we ever want to include the patches there, but I'll turn off Mac. Going on my experiences enabling this with my IcedTea fork, the config probably needs to be altered anyway to run at the appropriate point, in the absence of SKARA. As to this patch, it looks fine & the Linux build was ok, so I'll integrate this. The Mac & Windows failures are curious; I'll see if they replicate without this patch as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed failures seen with this patch are already present in the baseline fips-17u branch: https://github.com/rh-openjdk/jdk/runs/6398670091?check_suite_focus=true
|
RH2023467: Enable FIPS keys export Co-Authored-By: Martin Balao <mbalao@redhat.com> Co-Authored-By: Alex Kashchenko <akashche@redhat.com>
RH2023467: Enable FIPS keys export Co-Authored-By: Martin Balao <mbalao@redhat.com> Co-Authored-By: Alex Kashchenko <akashche@redhat.com>
This attribute isn't queried but used as input, as required in rh-openjdk/jdk@62ffef3 code. However, after rh-openjdk/jdk@f3d97d5, this is no longer needed, since that information is queried by the exporter itself. Referenced commits are part of rh-openjdk/jdk#1.
RH2023467: Enable FIPS keys export Co-Authored-By: Martin Balao <mbalao@redhat.com> Co-Authored-By: Alex Kashchenko <akashche@redhat.com>
RH2023467: Enable FIPS keys export Co-Authored-By: Martin Balao <mbalao@redhat.com> Co-Authored-By: Alex Kashchenko <akashche@redhat.com>
Search this PR in Red Hat Jira
RH2023467: Enable the export of keys in plain from the NSS Software Token while in FIPS mode [rhel-8, openjdk-17]
Description
In the context of RH1991003, we implemented an enhancement to import plain secret and private keys (i.e.: obtained from a file-based keystore) into the NSS Software token in FIPS mode. The goal now is to enable the reverse operation: export keys in plain from the NSS Software Token while in FIPS mode.
The scope was initially constrained to keys of
CKO_SECRET_KEYclass, as this is what we required for TLS 1.3 key-derivation in FIPS mode (see RH2020290). As a dependency for PKCS#12 keystores in FIPS mode (see RH2048582), we extended the exporter functionality to support keys ofCKO_PRIVATE_KEYclass, in colaboration with @martinuy, @akashche and myself (@franferrax).In the same way that for the importer functionality, the exporter can be disabled by means of the
com.redhat.fips.plainKeySupportsystem property:-Dcom.redhat.fips.plainKeySupport=false. Default behavior is enabled.As part of this work, we aim to implement several code, debugging and reliability improvements to the FIPS Key Importer.