Skip to content

Instantly share code, notes, and snippets.

@jhunt
Created August 15, 2016 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhunt/363da89f44228984ae2786598772e442 to your computer and use it in GitHub Desktop.
Save jhunt/363da89f44228984ae2786598772e442 to your computer and use it in GitHub Desktop.
[builder@b582d798647a tmp]$ curl -LO http://pkg.niftylogic.com/centos/el5/x86_64/bolo-0.2.18-1.nifty1.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 76645 100 76645 0 0 657k 0 --:--:-- --:--:-- --:--:-- 712k
[builder@b582d798647a tmp]$ rpm -K bolo-0.2.18-1.nifty1.x86_64.rpm
bolo-0.2.18-1.nifty1.x86_64.rpm: rsa sha1 (md5) pgp md5 OK
[builder@b582d798647a tmp]$ rpm -Kv bolo-0.2.18-1.nifty1.x86_64.rpm
bolo-0.2.18-1.nifty1.x86_64.rpm:
Header V3 RSA/SHA1 Signature, key ID 7b576eff: OK
Header SHA1 digest: OK (2ee537ef7e3b335788c8e26f863211ce92ad8c73)
V3 RSA/SHA1 Signature, key ID 7b576eff: OK
MD5 digest: OK (dda3091d932fe5e3ce83c55116f6098d)
@jhunt
Copy link
Author

jhunt commented Aug 15, 2016

@teancom you refer to line 12 for the MD5 digest / fingerprint?

Using https://hub.docker.com/r/rpmbuild/centos6 for reference

@teancom
Copy link

teancom commented Aug 15, 2016

@jhunt
Copy link
Author

jhunt commented Aug 15, 2016

le sigh, centos 5. le sigh.

Thanks

@jhunt
Copy link
Author

jhunt commented Aug 15, 2016

Do you recommend hacking the gpg.conf to get >SHA1, or do you prefer using the --digest-algo in the %__gpg_sign_cmd RPM macro (via ~/.rpmmacros)?

@jhunt
Copy link
Author

jhunt commented Aug 15, 2016

@teancom: ^^

@teancom
Copy link

teancom commented Aug 15, 2016

I prefer to modify .rpmmacros purely for personal reasons (I keep that in sync across build envs moreso than my gpg.conf) but whatever fits best for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment