Hey!
I am trying to set up Elastic on my testlab Windows server 2019. All is good until I try to enable SSL.
I am using this guide :
But seem to get an error (possible syntax problem I suppose).
C:\kibana>.\bin\kibana.bat
[2022-12-12T17:20:56.982+02:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2022-12-12T17:21:24.892+02:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
[2022-12-12T17:21:24.911+02:00][INFO ][plugins-service] Plugin "profiling" is disabled.
[2022-12-12T17:21:24.979+02:00][FATAL][root] Error: ENOENT: no such file or directory, open 'C:\kibana\config\elk-siem.key'
at Object.openSync (node:fs:590:3)
at readFileSync (node:fs:458:35)
at readFile (C:\kibana\node_modules@kbn\server-http-tools\target_node\src\ssl\ssl_config.js:175:47)
at new SslConfig (C:\kibana\node_modules@kbn\server-http-tools\target_node\src\ssl\ssl_config.js:126:18)
at new HttpConfig (C:\kibana\node_modules@kbn\core-http-server-internal\target_node\src\http_config.js:252:16)
at C:\kibana\node_modules@kbn\core-http-server-internal\target_node\src\http_service.js:62:253
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\map.js:10:37
at OperatorSubscriber._this._next (C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\observable\combineLatest.js:51:40
at OperatorSubscriber._this._next (C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\map.js:10:24
at OperatorSubscriber._this._next (C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\distinctUntilChanged.js:18:28
at OperatorSubscriber._this._next (C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\map.js:10:24
at OperatorSubscriber._this._next (C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subscriber.js:51:18)
at ReplaySubject._subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\ReplaySubject.js:54:24)
at ReplaySubject.Observable._trySubscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:41:25)
at ReplaySubject.Subject._trySubscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Subject.js:123:47)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:35:31
at Object.errorContext (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\errorContext.js:22:9)
at ReplaySubject.Observable.subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:26:24)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\share.js:66:18
at OperatorSubscriber. (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\lift.js:14:28)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:30:30
at Object.errorContext (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\errorContext.js:22:9)
at Observable.subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:26:24)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\map.js:9:16
at OperatorSubscriber. (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\lift.js:14:28)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:30:30
at Object.errorContext (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\errorContext.js:22:9)
at Observable.subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:26:24)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\distinctUntilChanged.js:13:16
at OperatorSubscriber. (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\lift.js:14:28)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:30:30
at Object.errorContext (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\errorContext.js:22:9)
at Observable.subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:26:24)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\operators\map.js:9:16
at OperatorSubscriber. (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\lift.js:14:28)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:30:30
at Object.errorContext (C:\kibana\node_modules\rxjs\dist\cjs\internal\util\errorContext.js:22:9)
at Observable.subscribe (C:\kibana\node_modules\rxjs\dist\cjs\internal\Observable.js:26:24)
at C:\kibana\node_modules\rxjs\dist\cjs\internal\observable\combineLatest.js:44:28
at maybeSchedule (C:\kibana\node_modules\rxjs\dist\cjs\internal\observable\combineLatest.js:72:9)
at _loop_1 (C:\kibana\node_modules\rxjs\dist\cjs\internal\observable\combineLatest.js:41:17)FATAL Error: ENOENT: no such file or directory, open 'C:\kibana\config\elk-siem.key'
I have my kibana.yml configuration here:
server.ssl.enabled: true
server.ssl.certificate: C:\kibana\config\certnew.crt
server.ssl.key: C:\kibana\config\elk-siem.key
The .crt file is read, but I can not read for some reason, .key file.