Re-creating the Docker container behavior for initial SuperAdmin enrollment #558
Unanswered
sbarnes-tecnica
asked this question in
Q&A
Replies: 1 comment 2 replies
-
What are the ant commands you used to deploy the ear file? If you use the ant runinstall command that would create the superadmin. If you use deployear to only deploy the ear file and then create the management CA, setup tls, and add the superadmin with the above command would get you that similar workflow to the container. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm working on a build script to install fresh instances of EJBCA-CE, and I was wondering how best to get a new install to have the same behavior as the Docker container, where a message box is printed with the initial URL and enrollment code for the initial admin user.
On a fresh install, invoking ejbca.sh:
ejbca.sh ra addendentity --username superadmin --password 6V3oHXxvwWrGq64MF2EI1bepytjW3n7 --dn "CN=SuperAdmin,O=EJBCA" --caname ManagementCA --type=1 --token USERGENERATED
Yields
ERROR: User 'superadmin' already exists in the database.
Even when superadmin.batch is set to false in web.properties.
I can force delete the superadmin user from the command line and add them back with that same command, but this doesn't give quite the same behavior, as you are unable to have the server generate keys if desired.
Beta Was this translation helpful? Give feedback.
All reactions