Digitally sign PDF

Install Okular PDF viewer

sudo pacman -S okular

Import certificate into Mozilla Firefox

You will need a *.p12 file of your certificate (e.g. sigen-ca g2 2483790412026.p12).

  1. Open Mozilla firefox and go to Settings.

  2. Search for certificates and click View Certificates

  1. Select Your Certificates and click Import.

  1. Now find your *.p12 file and open it. Than enter your password (you should have gotten it when you claimed your certificate).

You have successfully imported your certificate into Firefox.

Add certificate in Okular

  1. You should now have certificate imported in Mozilla Firefox.

  2. Create a directory to store your Okular certificates (e.g. ~/cert/okular)

mkdir -p ~/cert/okular
  1. Copy key4.db and cert9.db files from ~/.mozilla/firefox/XXXXXXXX.default-release/ (whereXXXXXXXX is random string) to newly created directory.

cp ~/.mozilla/firefox/18yapjsu.default-release/key4.db ~/cert/okular/
cp ~/.mozilla/firefox/18yapjsu.default-release/cert9.db ~/cert/okular/
  1. Open Okular expand Settings tab and click Configure Backends.

  1. Now select PDF in the sidebar, select Custom in Certificate Database group and click Open File Dialog button to select previously created directory (e.g. ~/cert/okular).

  1. Click OK and close Okular. Now you are ready to digitally sign PDF dockuments (after you reopen Okular).