Generate node certificate

What am I doing wrong? missing some option, parameter?

I have my cluster setup with certificate and working fine with following config on all nodes.
it was created using

/usr/share/elasticsearch/bin/elasticsearch-certutil cert cert --ca elastic-certificates.p12

Same as describe in this link true true certificate /etc/elasticsearch/config/elastic-certificates.p12 /etc/elasticsearch/config/elastic-certificates.p12

and now when I try to generate certificate for node using ca that I have , it give me this error
following this -

Exception in thread "main" java.lang.IllegalArgumentException: ca certificate is not a CA!
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
        at org.elasticsearch.cli.MultiCommand.execute(
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
        at org.elasticsearch.cli.Command.main(
        at org.elasticsearch.launcher.CliToolLauncher.main(

You have cert in there teice

ya that was typo. but that part works.

second part is not

Can you show the actual commands not just error? help without it.

Can you show the actual commands, the output files and errors in sequence?

Ohh and not sure if another typo

That should be
--ca elastic-certificate-ca.p12

Whenever you use the CA flag this or after it has to be the CA. I don't know if that was a typo too

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.