{"id":507,"date":"2018-11-16T23:30:27","date_gmt":"2018-11-16T21:30:27","guid":{"rendered":"https:\/\/blog.chloesoe.ch\/?p=507"},"modified":"2018-12-04T20:31:16","modified_gmt":"2018-12-04T18:31:16","slug":"sign-a-pdf-on-linux-with-suisseid","status":"publish","type":"post","link":"https:\/\/blog.chloesoe.ch\/?p=507","title":{"rendered":"Sign a PDF on Linux with SuisseID"},"content":{"rendered":"<p>Assumed, your SuisseID Smartcard already is working on your Linux workstation.<\/p>\n<ol>\n<li>Download LocalSigner from <a href=\"https:\/\/www.e-service.admin.ch\/wiki\/display\/openegovdoc\/LocalSigner+Download\"> Open eGov Plattform <\/a> of Confoederatio Helvetica<\/li>\n<li>Untar it to ~\/opt or wherever you want\n<pre><code>tar xvzf localsigner_4.1.3_linux.tar.gz --directory=~\/opt<\/code><\/pre>\n<\/li>\n<li>Make sure you use Java 8 (Oracle or OpenJDK). I had some issues with openJDK 10<\/li>\n<li>run localsigner\n<pre><code>~\/opt\/LocalSigner\/local-signer.sh<\/code><\/pre>\n<\/li>\n<li>If the PDF is not PDF\/A, then a \"convert\" button is shown, hit it<\/li>\n<li>the rest is self-explanatory, select a source and a destination, then click on \"sign\" on the bottom-right<\/li>\n<li>to check the signature, there is a command line tool. Run:\n<pre><code>pdfsig ~\/path\/signed-file.pdf<\/code><\/pre>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Assumed, your SuisseID Smartcard already is working on your Linux workstation. Download LocalSigner from Open eGov Plattform of Confoederatio Helvetica Untar it to ~\/opt or wherever you want tar xvzf localsigner_4.1.3_linux.tar.gz &#8211;directory=~\/opt Make sure you use Java 8 (Oracle or OpenJDK). I had some issues with openJDK 10 run localsigner ~\/opt\/LocalSigner\/local-signer.sh If the PDF is&#8230; <a href=\"https:\/\/blog.chloesoe.ch\/?p=507\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Sign a PDF on Linux with SuisseID<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[],"class_list":["post-507","post","type-post","status-publish","format-standard","hentry","category-it-sec","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=507"}],"version-history":[{"count":4,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}