[ 
https://issues.apache.org/jira/browse/FOP-3166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-3166.
--------------------------------
    Fix Version/s: main
       Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/08d676ebd139a827fc2e6756d1ab542bce1a17b7

> Add option to sign PDF
> ----------------------
>
>                 Key: FOP-3166
>                 URL: https://issues.apache.org/jira/browse/FOP-3166
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Simon Steiner
>            Assignee: Simon Steiner
>            Priority: Major
>             Fix For: main
>
>         Attachments: fop.xconf, mykeystore.pkcs12, test.fo
>
>
> As a user I want to sign my pdf
>     Run this cmd:
>     openssl req -new -newkey rsa:4096 -nodes -keyout my.key -out my.csr
>     openssl x509 -req -sha256 -days 365 -in my.csr -signkey my.key -out my.pem
>     cat my.key my.pem > my2.pem
>     openssl pkcs12 -export -in my2.pem -out mykeystore.pkcs12 -name myAlias
>     Add to pdf section of fop.xconf:
>     <sign-params>   <keystore>mykeystore.pkcs12</keystore>   <name>xxx</name> 
> </sign-params>
>   fop test.fo -c fop.xconf out.pdf
>     In Adobe Reader it should say in side panel:
>     Document has not been modified since it was certified



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to