JDK-8255558 : InstallGuide: Update documentation of JDK RPM installation steps
  • Type: Enhancement
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2020-10-28
  • Updated: 2021-03-01
  • Resolved: 2020-11-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u281 b05Fixed
Description
Since jdk8 JDK and JRE RPMs become signed with OL keys installation of these RPMs on Linux distributions other than OL pops up warning that security validation of the package fails.

The reason for this warning is that the public key used for signing RPMs is not installed in the system. There is no such problem when installing RPMs on OL as this key is available by default in the system.

The problem and the evaluation is described in JDK-8246165.

We would like to update JDK/JRE RPM installation guide on Linux for jdk8 with the details on installing the public key.

The steps are the following:

If installation of JDK/JRE RPM package outputs warning to the console something like:
---
warning: jdk-8u281-ea-bin-b03-linux-amd64-20_oct_2020.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
---

Then this indicates the public key used to sign this RPM needs to be installed in the system.
Key installation steps:
1. Download the key from https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7:
  wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7
2. Install the key:
  sudo rpm --import RPM-GPG-KEY-oracle-ol7

Public key installation needs to be done only once. The key installation is persistent across reboots.
Comments
Pushed the changes. Changeset: b6a4be8b8aa8 Author: pprasad Date: 2020-11-05 11:02 +0530 URL: http://closedjdk.us.oracle.com/jdk8u/jdk8u-cpu/pubs/rev/b6a4be8b8aa8 8255558: InstallGuide: Update documentation of JDK RPM installation steps Summary: Documented Installing Public Key for JDK and JRE RPMs Reviewed-by: asemenyuk
05-11-2020

Looks good.
04-11-2020

[~asemenyuk] Thanks so much for your inputs. I have added the wget command and refreshed the files. Please verify and approve the changes.
04-11-2020