Hi!
I have a .p12 certificate (PKCS12) but when I try to use it I get:
Certificate ................. contains critical extension with OID "2.5.29.19" which is not recognized by JSignPdf - skipping.
Is this a problem of JSignPdf or Java?
Actually, the full message is this:
Starting PDF Signer
Checking input and output PDF paths.
Getting key alias
Certificate {my name} contains critical extension with OID "2.5.29.19" which is not recognized by JSignPdf - skipping.
Used key alias: null
Loading private key
Problem occured
java.lang.NullPointerException
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineGetKey(Unknown Source)
at java.security.KeyStore.getKey(Unknown Source)
at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:347)
at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:80)
at java.lang.Thread.run(Unknown Source)
Finished: Creating of signature failed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed in version 1.1.1 - new "well-known" critical extension OIDs are supported and moreover is the critical extension check disabled by default (in conf/conf.properties).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, the full message is this:
Starting PDF Signer
Checking input and output PDF paths.
Getting key alias
Certificate {my name} contains critical extension with OID "2.5.29.19" which is not recognized by JSignPdf - skipping.
Used key alias: null
Loading private key
Problem occured
java.lang.NullPointerException
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineGetKey(Unknown Source)
at java.security.KeyStore.getKey(Unknown Source)
at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:347)
at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:80)
at java.lang.Thread.run(Unknown Source)
Finished: Creating of signature failed.
Fixed in version 1.1.1 - new "well-known" critical extension OIDs are supported and moreover is the critical extension check disabled by default (in conf/conf.properties).
Thank you very much for your efforts, it works great now!