The sample application allowing to generate digitally signed PDF files.
You can find the code and the digital signatures topic explanation on my blog jvmfy.com
- Spring Boot 2.1.0
- PDFBox 2.0.12
- Bouncycastle 1.60
- Gradle 4.6
- Create a keystore with a private and public key pair
- Add the keystore path and password to the environment variables
- Change the alias in an application.yml file
- Run an application
- Go to http://localhost:8080/api/pdf/export address
- Save the file
- Open file by Acrobat Reader
If you have any question visit my blog jvmfy.com.