Elliptic Curve certificate

70 views
Skip to first unread message

Muhammad Ibrahim

unread,
Feb 28, 2022, 11:20:18 PM2/28/22
to JSignPdf
Hi,

I was trying to sign a document using an EC certificate but it failed with Unknown Key Algorithm EC error.
Does EC certificates supported or will it be supported ?

SEVERE Problem occured
java.security.NoSuchAlgorithmException: Unknown Key Algorithm EC
        at com.lowagie.text.pdf.PdfPKCS7.<init>(PdfPKCS7.java:619)
        at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:357)
        at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:116)
        at java.lang.Thread.run(Thread.java:748)

INFO Finished: Creating of signature failed.


Regards,
--iBro

Josef Cacek

unread,
Mar 6, 2022, 10:59:54 AM3/6/22
to JSignPdf forum
Hi Muhammad,

could you try this SNAPSHOT version?
https://s01.oss.sonatype.org/content/repositories/snapshots/com/github/kwart/jsign/jsignpdf-distribution/2.2.0-SNAPSHOT/jsignpdf-distribution-2.2.0-20220306.154554-28.zip

I've enabled the ECDSA there. Still, I didn't verify the resulting signed PDFs.

The change is this commit in the OpenPDF library:
https://github.com/kwart/OpenPDF/commit/d42b987610c7fb276f3275f3cea6a9ba47c7489a

-- Josef

út 1. 3. 2022 v 5:20 odesílatel 'Muhammad Ibrahim' via JSignPdf
<jsig...@googlegroups.com> napsal:
> El sistema de correo electrónico de Aje, está destinado únicamente para fines del negocio, cualquier otro uso contraviene las políticas de la empresa. Toda la información del negocio contenida en este mensaje es confidencial y de uso exclusivo de Aje; su divulgación, copia y/o adulteración están prohibidas bajo responsabilidad y sólo debe ser conocida por la persona a quien se dirige este mensaje. Si Ud. ha recibido este mensaje por error por favor proceda a eliminarlo y notificar al remitente.
>
> --
> You received this message because you are subscribed to the Google Groups "JSignPdf" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jsignpdf+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jsignpdf/c3ba5223-70f5-4f77-82df-f66edc73b83bn%40googlegroups.com.

Muhammad Ibrahim

unread,
Mar 6, 2022, 10:39:45 PM3/6/22
to JSignPdf
Hi Josef,

It worked.
Already tested and validate the resulting document with Adobe Acrobat Rader and it did not complain.
Thank you very much.

Regards,
--iBro

Reply all
Reply to author
Forward
0 new messages