chris2511 / xca

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

Refresh supported hashes after key generation #425

Closed voczi closed 1 year ago

voczi commented 1 year ago

Generating a new key in the x509 certificate creation dialog does not refresh the supported hash algorithms. The following error is produced after trying to use an unsupported hash algorithm, e.g., ED25519 with any algorithm:

The following error occurred:
(8pki_x509[]:...)
error:1010F08A:elliptic curve routines:pkey_ecd_ctrl:invalid digest type

(...\xca\lib\pki_x509.cpp:574)

Fixed by refreshing available algorithms immediately after generating a new key.

chris2511 commented 1 year ago

Thanks for discovering the bug. Fixing the slot-signature with fdf48c8b5b240c93046b0cfc8d638bd696f9c80a made your fix obsolete.