We need to make sure that the DNIe is valid,
for that we need to check that it's current state is good (not revoked or invalid),
and that the authority that has issued the certificate is valid.
Note: This should be done in the server side, not in the client side applet.
As someone could skip the applet and send us a vote encrypted with an invalid DNIe.
We need to make sure that the DNIe is valid, for that we need to check that it's current state is good (not revoked or invalid), and that the authority that has issued the certificate is valid.
Herei is an example code in JAVA http://forja.cenatic.es/docman/view.php/160/1196/archivos_ejemplo_ocsp_java.zip