-
Notifications
You must be signed in to change notification settings - Fork 25.8k
certutil return code on error #37841
Copy link
Copy link
Closed
Labels
:Security/TLSSSL/TLS, CertificatesSSL/TLS, Certificates
Description
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 certcommand twice with the--out /tmp/certs.zipargument - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Security/TLSSSL/TLS, CertificatesSSL/TLS, Certificates
Type
Fields
Give feedbackNo fields configured for issues without a type.