Skip to content

Conversation

@djberg96
Copy link

This is meant to address jruby/jruby#8254 where an exception occurs if I try to generate a rubygem with a signed cert.

Note that this is AI generated code (I don't really know Java), so I'm happy to make changes if you think it needs them.

@djberg96
Copy link
Author

I've no idea why the one maven check is failing, help wanted.

Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the effort Danie, unfortunately this doesn't seem right.

Maybe we would be better of starting with a minimal reproducer (test-case).

} catch (IllegalArgumentException e) {
if (pemObject instanceof PEMEncryptedKeyPair) {
try {
PEMEncryptedKeyPair encrypted = (PEMEncryptedKeyPair) pemObject;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're dealing with the pemObject instanceof PEMEncryptedKeyPair then that could be checked earlier, instead of catching the IllegalArgumentException...

also bellow we just provide a null password and hope it works, why?

@djberg96
Copy link
Author

@kares Probably the easiest way to see what I'm seeing is to clone https://github.com/djberg96/sys-filesystem and run jruby -S rake gem:create.

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

Successfully merging this pull request may close these issues.

2 participants