According to the regulations for electronic signatures (Law 59/2003) and the development for interoperability purposes (Royal Decree 4/2010) of the recognized personal certificates of public worker issued by the AOC Consortium, the DNI must appear, obligatorily, as the Certificate identifier.
Failure to include this data by any certification service provider included in the state list would result in the loss of this status and, ultimately, the inability to continue issuing Qualified Certificates.
With the development of the European Regulation on the electronic identification of trusted services for electronic transactions in the internal market (ReIDAS), the DNI continues to be treated as a unique national identification and therefore a data that must be included in the certificate.
Note that this is a field that the public worker can modify the settings of the image generated in the electronic signature when signing with the tool pdf (pickle) so that the DNI field does not appear every time the recognized certificate is used but in any case it continues to incorporate the DNI in the signature properties. You will find more information on how to modify the settings of the image generated in it enllaç.