Conjur: If keys are encrypted, "'ui' is already decrypted" error is thrown as part of import of new Follower certificate

Conjur: If keys are encrypted, "'ui' is already decrypted" error is thrown as part of import of new Follower certificate

89
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:07 PM


Symptom


Using evoke command to import new Follower certificate as follow:
evoke ca import -k /opt/conjur/private.key /opt/conjur/gtm-follower.pem
, results in the following error:
error: This operation is not supported while the keys are encrypted. Use 'evoke keys decrypt-all' to decrypt them.

As recommended in the error message above, decrypt-all command must be executed:
evoke keys decrypt-all /opt/conjur/'DAP Production MASTER KEY'

However, above command results in the following error
'ui' is already decrypted
Decrypted 1 key files and adjusted 0 symlinks


Environment


12.0;12.1;12.2;12.4;12.3;12.5;12.6;12.7 Conjur Server Conjur 12.x

Cause


Under /opt/conjur/etc directory, it is expected to have the encrypted files (.enc) for both ui.key and possum.key, i.e.:
1) ui.key.enc
2) possum.key.enc

However, it is possible that the ui.key.enc gets corrupted or not readable.


Resolution


Rename the ui.key.enc file in /opt/conjur/etc directory.

Then confirm that the decrypt-all command is now successful, e.g.:
evoke keys decrypt-all /opt/conjur/'DAP Production MASTER KEY'
And finally continue with the actual new Follower certificate import, e.g.:
evoke ca import -k /opt/conjur/private.key /opt/conjur/follower.pem


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001QVGCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail