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

How to force RPM v3 signature? #616

Closed
2rs2ts opened this issue Jun 29, 2015 · 4 comments
Closed

How to force RPM v3 signature? #616

2rs2ts opened this issue Jun 29, 2015 · 4 comments
Labels

Comments

@2rs2ts
Copy link

2rs2ts commented Jun 29, 2015

I used the rpm plugin to generate an RPM on my Mac, but usually I do it in a CentOS 5 VM. When I went to install the rpm in the CentOS 5 VM I got this error:

error: myapp-latest.noarch.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 44ea73ae
error: myapp-latest.noarch.rpm cannot be installed

I found this guide which is supposed to force v3 signatures but I'd rather not rely on modifying the local environment if there's a way to do it via the rpm plugin. So... is there a way?

P.S. the guide I found is all about gpg but I didn't realize that the rpm plugin signed the rpms.

@muuki88 muuki88 added the rpm label Jun 29, 2015
@muuki88
Copy link
Contributor

muuki88 commented Jun 29, 2015

The RPM Plugin doesn't sign the rpms (even though we prepared everything to do so).
If you set your sbt logging to debug, you can take a look at the rpm command that is used
to build the package. Then you can try to execute it manually and see what may fix this issue.

@2rs2ts
Copy link
Author

2rs2ts commented Jun 30, 2015

The command it is using is

rpmbuild -bb --target noarch-PayPal-Linux --buildroot /Users/2rs2ts/src/my-app/my-app/target/rpm/buildroot --define _topdir /Users/2rs2ts/src/my-app/my-app/target/rpm --define _tmppath /var/folders/gp/l9gt6r791p1bdcgtf2b2dppw392tbp/T/sbt_8f0f0597 myapp.spec

No --sign there, which aligns with what you said. I guess this boils down to something about my rpm installation. Thanks.

@muuki88
Copy link
Contributor

muuki88 commented Jul 1, 2015

We are testing only on rpm v4, so I really can't say anything about v3. However we have random issues with rpm. Mostly on MacOSX because different scriptlet settings.

@muuki88 muuki88 closed this as completed Jul 1, 2015
@2rs2ts
Copy link
Author

2rs2ts commented Jul 1, 2015

Thanks. For what it's worth, I am pursuing help on StackOverflow about this. The result of my endeavors may help others, so I'll include the link.

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

No branches or pull requests

2 participants