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

java.io.IOException: secret key ring doesn't start with secret key tag: tag 0xffffffff #16

Closed
fthomas opened this issue Aug 11, 2018 · 1 comment

Comments

@fthomas
Copy link
Contributor

fthomas commented Aug 11, 2018

During my first attempts to release via a tag I got this error: java.io.IOException: secret key ring doesn't start with secret key tag: tag 0xffffffff. Unfortunately I don't have the build log of this failed attempt anymore, so I can't show the complete stacktrace. I was able to fix this problem by slightly changing how the value of PGP_SECRET was created. Instead of

gpg --armor --export-secret-keys $LONG_ID | base64

I needed to pass -w0 to base64 which disables line wrapping

gpg --armor --export-secret-keys $LONG_ID | base64 -w0

So base64 without -w0 outputted a multiline string which caused the above error.
I'm using Ubuntu 16.04.5 with base64 (GNU coreutils) 8.25.

BTW, publishing via Travis is really cool, thanks @olafurpg! :-)

@olafurpg
Copy link
Member

Thanks for reporting and finding the workaround! I've updated the readme to include -w0 for Ubuntu cc4b031 The BSD base64 doesn't support -w0. (I was gonna open a PR but accidentally pushed to master because I don't have a fork of the repo 😅 )

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

No branches or pull requests

2 participants