Possible errors in the use of the electronic certificate
Skip information indexError "40934" when signing a procedure with a cryptographic card
Error "40934" is an identification error that generally occurs when selecting an incorrect electronic certificate when signing a declaration.
Whether it is an electronic DNI or a certificate on a cryptographic card, you need to make sure that you are selecting the authentication certificate to access and the signature certificate to sign and send.

Also, check that you have entered the correct PIN, and whether the signature is protected with this password.
If there are several electronic certificates in the certificate store and it is not possible to differentiate between them, it will be necessary to test the certificates that appear in the list, restarting the browser to be able to choose the correct certificate.