Instructions for signing documents with qualified electronic signature in Okular: Разлика между версии

От Infonotary
Направо към навигацията Направо към търсенето
Редакция без резюме
Редакция без резюме
Ред 27: Ред 27:
* Add the library of your smart card using this command:
* Add the library of your smart card using this command:


For '''Bit4id''':
For '''Bit4ID''':


{{Шаблон:ConsoleOutput|modutil -add "Bit4id" -libfile libbit4ipki.so -dbdir sql:$HOME/.pki/nssdb -mechanisms FRIENDLY}}
{{Шаблон:ConsoleOutput|modutil -add "Bit4id" -libfile libbit4ipki.so -dbdir sql:$HOME/.pki/nssdb -mechanisms FRIENDLY}}

Версия от 22:14, 22 юни 2022

Before proceeding you must do

  • IMPORTANT: More information about Okular
  • IMPORTANT: If you have smart card reader and smart card from InfoNotary, but you didn't install the drivers for them do the followinguse repositories of InfoNotary
  • IMPORTANT: The following instruction is tested on Ubuntu 22.04 and Okular 21.12.3

Installation of Okular

Install the program thru Terminal with command:

sudo apt-get install okular

Adding your smart card library in NSS

Configure your NSS repository:

  • Install the NSS tools. In Debian based distribution the necessary package is libnss3-tools:
sudo apt-get install libnss3-tools
  • Create a directory for the database of NSS with the following command:
mkdir -p $HOME/.pki/nssdb
  • Add the library of your smart card using this command:

For Bit4ID:

modutil -add "Bit4id" -libfile libbit4ipki.so -dbdir sql:$HOME/.pki/nssdb -mechanisms FRIENDLY

For OpenSC:

modutil -add "OpenSC" -libfile onepin-opensc-pkcs11.so -dbdir sql:$HOME/.pki/nssdb -mechanisms FRIENDLY

Signing PDF documents in Okular

1. Choose the PDF file with File > Open

2. From Tools choose Digitally Sign

OkularInstruction1.png

3. Using your mouse, click drag and draw the area where you would like the signature to appear.

OkularInstruction2.png

4. Choose your signature and dial your PIN code.