Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certutil return code on error #37841

Closed
chriswhite199 opened this issue Jan 25, 2019 · 1 comment
Closed

certutil return code on error #37841

chriswhite199 opened this issue Jan 25, 2019 · 1 comment
Assignees
Labels
:Security/TLS SSL/TLS, Certificates

Comments

@chriswhite199
Copy link

Elasticsearch version (bin/elasticsearch --version): 6.5.4

Plugins installed: []

JVM version (java -version): 1.8.0_192

OS version (uname -a if on a Unix-like system): Linux x86_64

Description of the problem including expected versus actual behavior:

bin/elasticsearch-certutil cert command yields an error message when you attempt to output certs to a zip file that already exists, but still returns a RC of 0.

This is an issue for scripts that may depend on the RC from running the certutil script as error detection should not depend on parsing stderr / stdout

Steps to reproduce:

  • Run the elasticsearch-certutil cert command twice with the --out /tmp/certs.zip argument
  • The second invocation yields an ERROR message to the console
  • The script exists with a RC of 0 (echo $?) rather than non-zero (indicating failure)

Provide logs (if relevant):

ERROR: Output file '/tmp/certs.zip' already exists
@colings86 colings86 added the :Security/TLS SSL/TLS, Certificates label Jan 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/TLS SSL/TLS, Certificates
Projects
None yet
Development

No branches or pull requests

4 participants