xca icon indicating copy to clipboard operation
xca copied to clipboard

XDB File encryption method

Open afsilvasantos opened this issue 1 year ago • 1 comments

Hi,

I have a doubt. What is the encryption method used to store the private keys in the xdb files?

Thanks

afsilvasantos avatar Aug 17 '22 10:08 afsilvasantos

Hello, i have the same question. In this topic there is the information that nothing is encrypted in the database. So i need a bit clarity! Are the Private Keys encrypted in the Database and if yes, with which method?

I couldn't find any informationen about this.

jonnycastaway avatar Nov 11 '22 10:11 jonnycastaway

It is stored as PKCS#8 encrypted key with either the database password (or the individual password of the key). The algorithm used is: AES 256 cbc https://github.com/chris2511/xca/blob/27853766893c1ddb82948496ac3d043f98f3012e/lib/pki_evp.cpp#L679

chris2511 avatar Feb 24 '24 07:02 chris2511