CryptoSys Home > FirmaSAT > Checking the key password with FirmaSAT

Checking the key password with FirmaSAT


To check if a password is correct for your key file, use the KEYCHECK command. Pass the filenames of your private key file and the associated certificate file together with the password. The general syntax is FirmaSAT KEYCHECK -k <keyfile> -p <password> <certorxmlfile>.

  1. If the password is correct (and the key and cert match), you will get "OK":
    > FirmaSAT KEYCHECK -k CSD01_AAA010101AAA.key -p 12345678a CSD01_AAA010101AAA.cer
    OK
    
  2. If the password is wrong, you will get error code -15:
    > FirmaSAT KEYCHECK -k CSD01_AAA010101AAA.key -p WRONG CSD01_AAA010101AAA.cer
    Error code -15: Decryption error/De error de descifrado (DECRYPT_ERROR):
    Cannot read private key/No se puede leer la clave privada
    
  3. If the the password is correct, but the key and certificate are not matched, you will get error code -21:
    > FirmaSAT KEYCHECK -k CSD01_AAA010101AAA.key -p 12345678a CSD02_AAA010101AAA.cer
    Error code -21: Match not found/No se pudo encontrar datos coincidente (NO_MATCH_ERROR):
    Private key does not match key in certificate/La clave privada no coincide
      con la clave del certificado
    

Contact us

To contact us or comment on this page, please send us a message.

This page last updated 15 August 2025