Skip to content

What I'm doing wrong with ejbca.sh cli when trying to create SubCA #592

Answered by aloeenmae
aloeenmae asked this question in Q&A
Discussion options

You must be logged in to vote

@primetomas My goal is to generate crypto keys and a subCA signed by an external Root CA (external Root CA is imported to my EJBCA) through the EJBCA CLI, and the crypto keys must be RSA 4096-bit. The default EJBCA subCA profile allows for 2048-bit RSA, and I do not want to change this default EJBCA subCA profile.

Seems that --keytype RSA and --keyspec are required, because with these I get:

ejbca.sh ca init --caname "My Test CA" --dn "CN=My Test CA,OU=My Test,O=My Test Org OU,C=EE" -v 365 -s SHA384WithRSA --tokenName my_test_token --tokenprop /tmp/crypto.prop --policy null --signedby -1691783881 -certprofile SUBCA
ERROR: Incorrect parameter usage.
    The following mandatory arguments ar…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@aloeenmae
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@primetomas
Comment options

@aloeenmae
Comment options

Answer selected by aloeenmae
@primetomas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants