In Italy public administrations are dismissing all forms of login access (at least for residents) to their sites via dedicated usernames (I had one for the Regional Health Services, one for the pension organization INPS, one for Agenzia delle Entrate, AdE, (the tax office), one for the Municipal site, and was happy with all of them). Now there are three alternatives:
- SPID, which requires to be identified by a variety of providers, the most diffuse of which is the Post. The administration routes you to your provider, you enter username and password and a third code. This can come via SMS or via a smartphone app. Unfortunately the number of SMS has a three-monthly quota
- CNS, i.e. the "National Service Card", which is actually regional. It is a chip card which is used to access health services and at the same time certifies your fiscal code (a very important number for everybody)
- CIE, i.e. the Electronic Identify Card, the latest form(s) of identity document (we always had one, usually on paper)
- bought a smart card reader
- tried to get a PIN for my CNS ... this involves going in person to an office, except that during the pandemics the site say you do it online, but if you try that you get back a mail which says you have to go in person to an office but only by appointment, there is a site to get the appointment, with a queue of some weeks ... anyhow I got the appointment for last Friday
- in the meanwhile I tested the smart card reader with various linux commands, I found this site which says that contrary to what regional site say one does not need special drivers but OpenSC is enough
- actually the various commands in the package recognised my card, read my name, etc.
- anyhow the Lombardy regional site says to install a CNS utility (mainly to sign documents) and provides instructions for a single browser, firefox !
which say you require a driver library, different for each version of smart card
- The installer of the utility in fact auto-locates opensc-pkcs11.so, so I thought that was the thing to put in Pale Moon Preferences-> Advanced -> Certificates -> Security Devices ... and indeed it recognised the smart card reader and even my name
- ... but I could not do any other test as I had no PIN
- Yesterday finally I got my PIN (in the meanwhile I also got a new CNS since the old one is due to expire next month ... they gave me the PIN for the new card saying it should be already active
- But neither the CNS utility nor Pale Moon seemed to work
- With some difficulty I located a site at the Ministry of Finance which contains the deb packages for the drivers for the various versions of CNS, the one for AC2021 (the tiny version number in the corner of my newer card) contains a libbit4xpki.so
- With that library the CNS utility works (signed a test document)
- And Pale Moon works very nicely: it realizes when the card is inserted, and is logged in. Actually the login remains for multiple site even after site logout. The only minor comment is that Pale Moon asks for a "card master password" which left me unsure whether it was the PIN or the PUK (it is the PIN)
- So now my CRS works for the Region site and the INPS site. Not (yet ?) for the AdE site, I suspect the card is too new, I'll see when the old one expires.
- Unfortunately the Municipal site does not support CRS (only SPID and CIE)
- So I tried inserting my CIE issued in 2015 ... Pale Moon detects it ... as a CNS
but no site works with it (I had a sealed sheet with the PIN since when I got it
- So I went to the CIE site, donwloaded another manual and another deb package, with an utility and a library libcie-pkcs11.so (which I added to the Pale Moon security devices
- ... but apparently all stuff on the CIE site is for CIE 3.0 (a NFC contactless card), not for my card which has a chip !

- ... so no site works with the CIE; Pale Moon "CNS" device 1 sees the CIE as a CNS, and even accepts its 5-digit PIN, device 2 says "not inserted"
- So I placed a ticket to the Ministry of Interior (responsible for CIE) ... will see what happens





