After installing both applications (Cryptographic card application - Smart Security Interface and SecureDoc2), we can proceed to signing the files.
Please note that in order to sign a file with a qualified signature, the device with the cryptographic card must be connected to the computer.
1. Specify the type of signature we want to sign the document ("Signature format" field)
2. Select the required signature options in the "Signature parameters" field. How to properly sign a given document type?
3. Add the files -> click "Add file" and select file
4. Click "Sign files". It is worth noting that all documents from the list selected for signing will be signed with the same signature parameter settings.
5. After clicking "Sign files", the certificate selection window will appear. Select the "Cryptographic device" tab, and from the list, select the certificate with which we want to sign the selected files and click "OK". In this tab, there are certificates available on the currently connected device. The "Personal certificates" tab allows you to read certificates from the Windows system store (including non-qualified certificates that are not on the device). It is recommended to use the "Cryptographic devices" tab, because in this case the program refers directly to the certificates on the cryptographic device.
6. After selecting the certificate and clicking "OK", an information message regarding the signature will be displayed. After reading the message, click "OK"
7. Enter the PIN code and click "OK". If the entered PIN code is correct, the application will start the signing process.
8. We check the signature status. If the document has been properly signed, the status "Signed" will appear in the status window next to the signed files, if an error has occurred, you will get the status "Unsigned".