Getting the error attached when I yum update my aws ec2
Downloading packages: warning: /var/cache/yum/x86_64/2/jenkins/packages/jenkins-2.238-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 45f2c3d5: NOKEY
Public key for jenkins-2.238-1.1.noarch.rpm is not installed
You can try installing its key manually:
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
or
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
as shown in official jenkins website.