Q: I am building a web application to sign a PDF document with a given .pfx key store. I am running Spring Boot and using Qoppa’s PDF library jPDFSecure. I am getting an exception which states “JCE Provider does not support SHA hash algorithm”. How can I resolve this error?
com.qoppa.pdf.PDFException: JCE Provider does not support SHA hash algorithm. at com.qoppa.pdf.SigningInformation.b(Unknown Source) at com.qoppa.pdf.SigningInformation.
A: Do you have the Bouncy Castle jars in your application classpath? These are the libraries we use for JCE providers. These jars can be found under the “lib” folder in the installation folder of our demo application for jPDFSecure
Find direct links to the Bouncy Castle library jars here: