Problems running the CLI #798
Replies: 2 comments 1 reply
-
A few things to start with: Second you command does not have the valid parameters. Run "bin/ejbca.sh ra addendentity --help" to see what arguments are available. Third, if the CLI can not contact the application server you should not have been able to run "anr runinstall", did the installation succeed to the last step before you try to run the above command? |
Beta Was this translation helpful? Give feedback.
-
Your server can not be contacted. Either it is not deployed, so you should start with basic troubleshooting. It may be that you missed the configuration for the CLI remoting: See other topics in discussions, for example: |
Beta Was this translation helpful? Give feedback.
-
root@user1:/opt/ejbca-ce-r9.0.0/bin# ./ejbca.sh ra addendentity MyAdmin "CN=MyAdmin,O=MyOrganization,C=US" -password mypassword -type 1 -ca ManagementCA -profile SuperAdmin
when i am run this command it show below msg but my wildfly is active ,ejbca ear is deployed
i am using java 17 jdk,
using ejbca-ce-r9.0.0 and wildfly-32.0.0.Final and my mysql 8.0.40-0 ubuntu0.22.04.1
How to resolved this issue
Error: CLI could not contact EJBCA instance. Either your application server is not up and running, EJBCA has not been deployed successfully, or some firewall rule is blocking the CLI from the application server.
Please be aware that most commands will not work without the application server available.
The following categories are available:
[ ca | config | cryptotoken | keybind | ocsp | ra | roles | service ]
And the following commands are available:
asn1dump Dumps PEM or DER encoded certificate as readable ASN.1
batch Batch generate keys and certificates.
clearcache Clears caches used internally by EJBCA.
createcert Issue a certificate for a user based on a CSR
encryptpwd Encrypts a password
gencsr Create a CSR
recover Recover certificates and end entities.
setupgradeversion Sets the 'upgrade' and 'post upgrade' versions in database. Internal command; not meant to be used in production.
upgrade Post upgrade command. Use 'ant upgrade' instead of running this directly.
Type a command and "--help" for more information.
Beta Was this translation helpful? Give feedback.
All reactions