Firma Digital Costa Rica Manjaro 20.1

  1. Install dependencies

    sudo pacman -S java-openjfx
    sudo pacman -S cpio rpm-tools pcsclite ccid icedtea-web

  2. Download Drivers

    https://soportefirmadigital.com/sfdj/dl.aspx?lang=es

  3. Unzip downloaded file

    unzip sfdClientesLinuxRPM64_Rev14.zip

  4. Copy Certificates to the system

    cd sfdClientesLinuxRPM64_Rev14/Firma\ Digital/Certificados/
    sudo cp -p ./* /usr/share/ca-certificates/trust-source/anchors/

  5. Update CA TrustStore

    sudo update-ca-trust

  6. 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.so

    95133 blocks <= successful

  7. 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 /Firma
    Digital/LIBRERIAS/
    sudo ln -s /usr/share/ca-certificates/trust-source/anchors /Firma_Digital/CERTIFICADOS

  8. Driver 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>

  9. 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

  10. Add it as a Systemd service
    sudo systemctl enable --now pcscd.socket

  11. Restart Firefox or dependent app

  12. If you need to sign documents you could use: Firmador.app

  13. Even though the Device has been loaded to Firefox for some reason is not working, I solved adding Athena manually to the loaded devices

    1. about:preferences#privacy > Security Devices
    2. Load: /Firma_Digital/LIBRERIAS/libASEP11.so
    3. Ignore the Errors and OK.

ref: https://fran.cr/instalar-firma-digital-costa-rica-manjaro-arch-linux/#more-596


You'll only receive email when they publish something new.

More from Jeremy Molina
All posts