-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Olá,
Tenho um use case muito específico, preciso de assinar um ficheiro XML, mas o resultado tem de ser envoloped e não um container (ASiCS). Estava a explorar fazer isto à mão, mas ao chamar o método SignXades (ainda não sei se isto me vai resolver, estou ainda na fase de explorar, por isso caso não seja assim, também seria bom saber como fazer isto) estou a ter um SEG FAULT na lib do OpenSSL.
O meu ambiente é o seguinte:
OpenSSL 3.4.1 (já testei com openssl 1.X e com 3.0.16)
Java 17 (ja testei com 8 também)
Autenticação Gov 3.13.0 (que funciona bem, consigo assinar usando o cartão)
Apple M1 (não sei até que ponto pode ser por isto)
Comando:
java -verbose:jni -Djava.library.path=/usr/local/lib/ -cp .:/usr/local/lib/pteid_jni/pteidlibj.jar XAdESEnvelopedSignatureExample
Erro:
[0.527s][debug][jni,resolve] [Dynamic-linking native method pt.gov.cartaodecidadao.pteidlibJava_WrapperJNI.PTEID_Card_SignXades__SWIG_1 ... JNI]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ffd1587aa63, pid=62017, tid=8963
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.14+7 (17.0.14+7) (build 17.0.14+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.14+7 (17.0.14+7, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# Problematic frame:
# C [libcrypto.46.dylib+0x1da63] i2c_ASN1_INTEGER+0x16
Alguma luz ao fundo do túnel?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working