simon987 / sist2

Lightning-fast file system indexer and search tool
GNU General Public License v3.0
845 stars 55 forks source link

Index: Cannot Connect to ES for index, can for Backend creation. #420

Closed dpieski closed 11 months ago

dpieski commented 1 year ago

Device Information (please complete the following information):

Command with arguments

 [ADMIN ] Starting sist2 command with args ['/root/sist2', 'index', '/sist2-admin/scan-Firm-2023-09-06 19:35:30.212114.sist2', '--threads=14', '--es-url=https://elastic:password@search.DOMAIN.com:9200', '--es-index=sist2', '--batch-size=200', '--es-insecure-ssl', '--incremental-index', '--json-logs', '--very-verbose']

image

Describe the bug

2023-09-06 22:14:56 [ERROR web.c] CURL Error: SSL: no alternative certificate subject name matches target host name 'search.DOMAIN.com'
2023-09-06 22:14:56 [FATAL elastic.c] Could not get ES version

Expected behavior

When es_insecure is selected- use it instead of overwriting because of https in the domain name.

Actual Behavior

2023-09-06 22:14:56 [DEBUG cli.c] arg es_url=https://elastic:PASSWORD@search.DOMAIN.com:9200
...
2023-09-06 22:14:56 [DEBUG cli.c] arg es_insecure_ssl=1
simon987 commented 11 months ago

Should be fixed in 31646a2747ea7c31336da2f9eb12aa4299df1220