Firma Digital Costa Rica Manjaro 20.1
September 26, 2020•253 words
Install dependencies
sudo pacman -S java-openjfx
sudo pacman -S cpio rpm-tools pcsclite ccid icedtea-webDownload Drivers
Unzip downloaded file
unzip sfdClientesLinuxRPM64_Rev14.zip
Copy Certificates to the system
cd sfdClientesLinuxRPM64_Rev14/Firma\ Digital/Certificados/
sudo cp -p ./* /usr/share/ca-certificates/trust-source/anchors/Update CA TrustStore
sudo update-ca-trust
Build/compile driver
cd PinTool/IDProtect\ PINTool\ 7.24.02/RPM/
rpm2cpio idprotectclient-7.24.02-0.x86_64.rpm | cpio -dim ./usr/lib/x64-athena/libASEP11.so95133 blocks <= successful
Import compiled driver, create symbolic links and references
sudo cp -p usr/lib/x64-athena/libASEP11.so /usr/lib/
sudo mkdir -p /usr/lib/x64-athena/
sudo mkdir -p /FirmaDigital/LIBRERIAS/
sudo ln -s /usr/lib/libASEP11.so /usr/lib/x64-athena/
sudo ln -s /usr/lib/libASEP11.so /usr/local/lib/
sudo ln -s /usr/lib/libASEP11.so /FirmaDigital/LIBRERIAS/
sudo ln -s /usr/share/ca-certificates/trust-source/anchors /Firma_Digital/CERTIFICADOSDriver Instructions metadata
sudo mkdir /etc/Athena/
sudo nano /etc/Athena/IDPClientDB.xml
<?xml version="1.0" encoding="utf-8" ?>
<IDProtect>
<TokenLibs>
<IDProtect>
<Cards>
<IDProtectXF>
<ATR type='hexBinary'>3BDC00FF8091FE1FC38073C821106600000000000000</ATR>
<ATRMask type='hexBinary'>FFFF00FFF0FFFFFFFFFFFFFFFFF0FF00000000000000</ATRMask>
</IDProtectXF>
</Cards>
</IDProtect>
</TokenLibs>
</IDProtect>Create/Add module to the system
sudo nano /usr/share/p11-kit/modules/firma-digital.module
remote: |bwrap --unshare-all --dir /tmp --proc /proc --dev /dev --ro-bind /etc /etc --ro-bind /usr /usr --ro-bind /run /run p11-kit remote /usr/lib/libASEP11.so
Add it as a Systemd service
sudo systemctl enable --now pcscd.socketRestart Firefox or dependent app
If you need to sign documents you could use: Firmador.app
Even though the Device has been loaded to Firefox for some reason is not working, I solved adding Athena manually to the loaded devices
- about:preferences#privacy > Security Devices
- Load: /Firma_Digital/LIBRERIAS/libASEP11.so
- Ignore the Errors and OK.
ref: https://fran.cr/instalar-firma-digital-costa-rica-manjaro-arch-linux/#more-596