Re: Using jsignpdf on iseries/AS400
Madie <[email protected]>
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <CAFW2iBCC_O=Ar4JXVYorqAi1GWQyaWho3TJyVP72okB99VS_JA@mail.gmail.com> |
I will mean that I am using RPGLE to embed java call and using args to pass the parameter while calling jsignpdf.jar...some how jar is not liking it and will return error... On Thu, Sep 6, 2018 at 12:28 AM, Madie <[email protected]> wrote: > Thanks a lot.. this was the reason , I created a new keystore and worked > great... > > is anyone using jsignpdf by any chance on iSeries? I am curious about how > you passing args to jsignpdf.jar... if i call the jar on command line it > works great but if i pass the parameter in args its not liking it... > > On Tue, Aug 14, 2018 at 12:51 AM, Jack Woehr <jwoehr@absolute-performance. > com> wrote: > >> Obviously doesn't like your keystore. Is it properly created and has keys >> in it? >> >> On Mon, Aug 13, 2018 at 1:11 PM, Madie <[email protected]> wrote: >> >> > Hi All, >> > >> > Anyone have used jsignpdf on iseries/AS400 to sign PDF documents? I am >> > trying to use below command but it fails with below error - appreciate >> any >> > help !!! >> > >> > java -jar JSignPdf.jar -kst PKCS12 -ksf /home/user1/JSignPdf-1.6.3/xx. >> pfx >> > -ksp xxxxxx invoice_1.pdf >> > >> > error: >> > >> > java -jar JSignPdf.jar -kst PKCS12 -ksf /home/user1/JSignPdf-1.6.3/xx. >> pfx >> > -ksp xxxxxx invoice_1.pdf -v >> > WARN net.sf.jsignpdf.utils.PropertyProvider$ProperyProviderException: >> > Property file /home/user1/.JSignPdf doesn't exist. >> > DEBUG Relaxing SSL security. >> > >> > JSignPdf version 1.6.3 >> > >> > INFO Checking input and output PDF paths. >> > >> > java.io.IOException: Error in loading the keystore: short read of DER >> > BMPString >> > at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad( >> > PKCS12KeyStore.java:291) >> > >> > at java.security.KeyStore.load(KeyStore.java:1238) >> > >> > at net.sf.jsignpdf.utils.KeyStoreUtils.loadKeyStore( >> > KeyStoreUtils.java:352) >> > >> > at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo( >> > KeyStoreUtils.java:406) >> > >> > at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:135) >> > >> > at net.sf.jsignpdf.Signer.signFiles(Signer.java:242) >> > >> > at net.sf.jsignpdf.Signer.main(Signer.java:137) >> > >> > WARN Keystore was not loaded succesfully. Check if the keystore type, >> path >> > and password are valid. >> > ERROR Problem occured >> > >> > java.lang.NullPointerException: Keystore was not loaded succesfully. >> Check >> > if the keystore type, path and password are valid. >> > at net.sf.jsignpdf.utils.KeyStoreUtils.getKeyAliasInternal( >> > KeyStoreUtils.java:216) >> > >> > at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo( >> > KeyStoreUtils.java:408) >> > >> > at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:135) >> > >> > at net.sf.jsignpdf.Signer.signFiles(Signer.java:242) >> > >> > at net.sf.jsignpdf.Signer.main(Signer.java:137) >> > >> > INFO Finished: Creating of signature failed. >> > -- >> > This is the Java Programming on and around the IBM i (JAVA400-L) mailing >> > list >> > To post a message email: JAVA400-L-Zwy7GipZuJhWk0Htik3J/[email protected] >> > To subscribe, unsubscribe, or change list options, >> > visit: https://lists.midrange.com/mailman/listinfo/java400-l >> > or email: JAVA400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] >> > Before posting, please take a moment to review the archives >> > at https://archive.midrange.com/java400-l. >> > >> > >> >> >> -- >> Absolute Performance, Inc. >> 12303 Airport Way, Suite 100 >> Broomfield, CO 80021 >> >> NON-DISCLOSURE NOTICE: This communication including any and all >> attachments is for the intended recipient(s) only and may contain >> confidential and privileged information. If you are not the intended >> recipient of this communication, any disclosure, copying further >> distribution or use of this communication is prohibited. If you received >> this communication in error, please contact the sender and delete/destroy >> all copies of this communication immediately. >> -- >> This is the Java Programming on and around the IBM i (JAVA400-L) mailing >> list >> To post a message email: JAVA400-L-Zwy7GipZuJhWk0Htik3J/[email protected] >> To subscribe, unsubscribe, or change list options, >> visit: https://lists.midrange.com/mailman/listinfo/java400-l >> or email: JAVA400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] >> Before posting, please take a moment to review the archives >> at https://archive.midrange.com/java400-l. >> >> > -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l.