chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.54k stars 204 forks source link

Digital envelope routines:EVP_DecryptFinal_ex:wrong final block length #413

Closed pandel closed 2 months ago

pandel commented 1 year ago

Hi!

While trying to sign a CSR with a password secured private key from the database, I get the following error message:

Der folgende Fehler ist aufgetreten:
(7pki_evp[4]:PrivKey)
error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length

(pki_evp.cpp:615)

I tried it with version 2.4.0 on Mac and on Windows. Same result.

What is happening here?

mgilan commented 1 year ago

I just found out I have the same issue on macOS. I'll have to test the Win and Linux versions next week.

chris2511 commented 1 year ago

This error happens when entering a wrong password. I really need to improve the message and behaviour.

mgilan commented 1 year ago

Sorry for the late reply. Anyway, the error really looked like that, and thanks to your confirmation, I found that I had a typo in password recordeds for my small CA 🙂 Thanks again!