Skip to content
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

[RHEL] Include gpg key in repo packages #32

Open
Klaas- opened this issue Feb 8, 2023 · 0 comments
Open

[RHEL] Include gpg key in repo packages #32

Klaas- opened this issue Feb 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Klaas-
Copy link

Klaas- commented Feb 8, 2023

Describe the problem you are experiencing.
Example RHEL8 but it applies to all rhel versions.

http://packages.microsoft.com/rhel/8/prod/Packages/p/packages-microsoft-prod.rpm currently includes a single file /etc/yum.repos.d/microsoft-prod.repo with the contents:

[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/rhel/8/prod
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
sslverify=1

Describe any possible solutions that you would like to see.
Supply gpg key in rpm put it into /etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft-EL[789] and use it in the repository file like gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft-EL[789] maybe use different ones for rhel major releases so you can easily update it every couple of years :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant