Skip to content

Commit 1bd4897

Browse files
committed
fix load error: jopenssl/load -- java.lang.VerifyError: Bad type on operand stack when using bouncycastle 1.51 or 1.52
1 parent d717926 commit 1bd4897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/ext/openssl/X509Cert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public IRubyObject sign(final ThreadContext context, final IRubyObject key, fina
555555
for ( X509Extension ext : uniqueExtensions() ) {
556556
try {
557557
final byte[] bytes = ext.getRealValueEncoded();
558-
builder.addExtension(ext.getRealObjectID(), ext.isRealCritical(), bytes);
558+
builder.addExtension(ext.getRealObjectID().getId(), ext.isRealCritical(), bytes);
559559
}
560560
catch (IOException ioe) {
561561
throw runtime.newIOErrorFromException(ioe);

0 commit comments

Comments
 (0)