a docker container will fail to activate "Crypto Tokens" after restarting with imported CA keystores #301
Replies: 3 comments
-
I made a simple test and it looks to be working as expected. What difference are you doing? sudo docker run -it -p 18080:8080 -p 18443:8443 -h mycahostname -e TLS_SETUP_ENABLED="simple" -e DATABASE_JDBC_URL=jdbc:mysql://172.26.0.1:3306/ejbcatest?characterEncoding=UTF-8 -e DATABASE_USER=ejbca -e DATABASE_PASSWORD=ejbca -e PASSWORD_ENCRYPTION_KEY="secretpwdEnryptionKey" -e CA_KEYSTOREPASS="secretKeystorePass" -e EJBCA_CLI_DEFAULTPASSWORD="secretCliPassword" keyfactor/ejbca-ce
Importing a CA keystore should not make any difference from creating a new crypto token. I actually tested this as well. It sounds like the custom PASSWORD_ENCRYPTION_KEY was not set correctly when you restarted the container? The imported crypto token does not affect existing ones in any way, they are in separate rows in the database table. |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion |
Beta Was this translation helpful? Give feedback.
-
Hi I'm facing exactly the same issue and cannot find any information on this. I can see this in the logs like it's expecting a keystore but from what I found it's supposed to store the secret in the database?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to EJBCA and started a new docker container based on "keyfactor/ejbca-ce:7.11.0". I made a simple docker-compose.yml which uses am separate MariaDB-instance.
After initial tests I changed to a production-setup, which includes setting own encryption-passwords (https://hub.docker.com/r/keyfactor/ejbca-ce --> Security Parameters).
In this setup, I'm not able to activate the "Crypto Tokens" anymore, for default "ManagmentCA" of my imported CA. I do the following steps, which always end in the situation:
When I do the same without defining own passwords in docker-setup, all is working as expected.
That are the passwords I used initially, but also simple alpha-numerical password resulting in the same problem.
the docker-compose.yml
docker log of initial startup, import, restart
Beta Was this translation helpful? Give feedback.
All reactions