Exporting CA with ca.tokenpassword=null #39
-
Hi everyone. I recently inherited an old development PKI and have been tasked to bring it in line with our production one. Long story short it involves moving the sub CAs to their own machines. Originally we thought exporting was a lost cause due to no one knowing the password, but as it turns out the install.properties has ca.tokenpassword set to null. The issue is when I try to export and give it no password, then I get the following:
Is there something I can do to get around this? EJBCA 6.5.0.5 Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 22 replies
-
If ca.tokenpassword in install.properties was set to null, only affects the initially created Management CA, not any Sub CAs that you subsequently created.
If "autoactivation" is enabled for the CA, the password is stored encrypted in the database and can be recovered. Let me know if the above does not fix it for you. |
Beta Was this translation helpful? Give feedback.
-
Ok, your EJBCA is very old, so it may be slightly different. I hope you can adjust.
In tokenProps I have a base64 encoded field, you may have an field called "pin" in cleartext (don't remember from that version). I do:
Not trivial I know, but it's shouldn't be trivial out-of-the-box to decrypt this. |
Beta Was this translation helpful? Give feedback.
-
Details how to fix the issue highlighted by @kombatminipig.
The solution should be to set keyEncryptKey eplicitly to be an RSA key. |
Beta Was this translation helpful? Give feedback.
Details how to fix the issue highlighted by @kombatminipig.
In the CA configuration you have a set of key aliases, one of them is called "keyEncryptKey". It can be either of two things:
The solution should be to set keyEncryptKey eplicitly to be an RSA key.