Bug 1750752
Summary: | Crypto provider not installed: SunPKCS11 - in FIPS mode | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Ondrej Moriš <omoris> | ||||
Component: | java-1.8.0-openjdk | Assignee: | Andrew John Hughes <ahughes> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | OpenJDK QA <java-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.1 | CC: | dbhole, hkario, java-qa, jjelen, jvanek, mbalao, nhorman, szidek, wchadwic, zzambers | ||||
Target Milestone: | rc | ||||||
Target Release: | 8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | java-1.8.0-openjdk-1.8.0.222.b10-3.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-01-20 16:54:27 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1760838, 1818909 | ||||||
Attachments: |
|
Description
Ondrej Moriš
2019-09-10 12:24:54 UTC
This is a bug apparently affecting java-1.8.0-openjdk package. Candidate fix: diff --git a/openjdk/jdk/src/share/lib/security/java.security-linux b/openjdk/jdk/src/share/lib/security/java.security-linux index 24f2a6e..6f5d4ec 100644 --- a/openjdk/jdk/src/share/lib/security/java.security-linux +++ b/openjdk/jdk/src/share/lib/security/java.security-linux @@ -82,7 +82,7 @@ security.provider.9=sun.security.smartcardio.SunPCSC fips.provider.1=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.fips.cfg fips.provider.2=sun.security.provider.Sun fips.provider.3=sun.security.ec.SunEC -fips.provider.4=com.sun.net.ssl.internal.ssl.Provider SunPKCS11 +fips.provider.4=com.sun.net.ssl.internal.ssl.Provider SunPKCS11-NSS # # Sun Provider SecureRandom seed source. I still need to figure out why java-11-openjdk is apparently not affected and do some more testing. Keep you posted. Thanks, Martin.- I can now confirm that: 1) java-1.8.0-openjdk and java-11-openjdk RHEL 8.1.0 builds are both affected by this bug 2) The fix proposed in comment:2 works for java-1.8.0-openjdk. A similar one is required for java-11-openjdk. 3) java-11-openjdk build is also affected by a bug in the upstream code, for which I have a candidate fix. I'll open a followup ticket in OpenJDK's JIRA. 4) ocspsrvd.jar is apparently not suitable to be run in RHEL's FIPS configuration because it uses external security providers such as bouncycastle. If you need to run it anyways, set the system/security property to disable OpenJDK's alignment with the system global policy. These properties are "java.security.disableSystemPropertiesFile" and "security.useSystemPropertiesFile". I'll proceed with followup tickets and patches. Thanks, Martin.- Martin, thanks a lot for quick analysis. Created attachment 1614619 [details]
RH1750752 patch v0
I've attached "RH1750752 patch v0" to fix this issue in java-1.8.0-openjdk. |