Hi Team and Miguel,
GodMorgon
Hope you are doing good and its Friday today!!!!!
I want a guidance and go-ahead from you , in reference to my below query.
Our Kibana dashboard URL to open Wazuh console is NOT SECURE, something like below screenshot.
1.Now to make it secure, as per my company standards will create a conf file and execute the below command to generate the CSR
openssl req -out sslcert.csr -newkey rsa:2048 -nodes -keyout private.key -config config.cnf
2. Then would load the generated CSR in our company certificate portal to get the SSL certificate (crt )
3. Where should I copy the crt and private key in Wazuh server ? Such that the URL gets secured
Please guide me on the same.
BR
/Prachi
Otherwise, if your server certificate and private key are in PEM format:
Specify your server certificate and private key in kibana.yml:
server.ssl.certificate: "/path/to/kibana-server.crt"
server.ssl.key: "/path/to/kibana-server.key"
The following example is an extraction of a server I am running with HTTPS encryption using my own certificate:
server.ssl.enabled: true
server.ssl.certificate: "/usr/share/kibana/node-6_http.pem"
server.ssl.key: "/usr/share/kibana/node-6_http.key"
elasticsearch.ssl.certificateAuthorities: ["/usr/share/kibana/root-ca.pem"]
elasticsearch.ssl.verificationMode: full
Hej Pedro,
Thank you so much for the quick response. You made my Day😊
Will try these steps and let you know in case I get stuck.
Thanks a tonnnnnnnn
BR
/Prachi
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
wazuh+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/wazuh/9b21435a-324a-42d0-a555-5a174fa75917n%40googlegroups.com.
Hej Pedro and Team,
Hope you are doing good.
Are you very sure on the steps for browsing WAZUH URL with valid certificate, my current URL is https://sekaissecdetection.hubseka.ericsson.net, just want to give the valid certificate such that NOT secure goes away.
I am very much confused, how should I proceed ?

Using my Company’s Certificate portal, .cer and .p7b extensions are produced after creating the csr as per my company’s certificate policy .
Now when I try to convert .CER to .CRT , below is the error I receive:
[root@sekaissecdetection certificate]# ls
sekaissecdetection.cer sekaissecdetection.cnf sekaissecdetection.csr sekaissecdetection.key
[root@sekaissecdetection certificate]# cat sekaissecdetection.cer
-----B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PWdADMAOjiqkpRb
piacTvnkc7M+AOhfZ/Th3+bTj7kZ1FuItccYUKWL6dtq2+ugrksplzQHjFQp3hAN
G7BkH8nt/elEdmYIHnZMGs2KPISpzS7t+SwL+m9uZmHPCq4iDjxqLCtPNMccjTg=
-----END CERTIFICATE-----
[root@sekaissecdetection certificate]# openssl x509 -inform PEM -in sekaissecdetection.cer -out sekaissecdetection.crt
unable to load certificate
140149988575040:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
[root@sekaissecdetection certificate]#
Please could you help me.
BR
/Prachi
Hi Team,
I am waiting for the answer, please suggest.
Even if I directly rename .CER to .CRT , in Kibana.yml file , our Kibana stops working
Is it also necessary to give root-ca.pem in below line?
I received root digital certificate from certificate portal while generating the security certificate for Kibana.yml file.. Is it the same as root-ca.pem?
elasticsearch.ssl.certificateAuthorities: ["/usr/share/kibana/root-ca.pem"]
elasticsearch.ssl.verificationMode: full
BR
/Prachi
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/DBAPR07MB69206E95693EDDAB58D3AE88967D9%40DBAPR07MB6920.eurprd07.prod.outlook.com.
Hi Pedro and Team,
How are you today...Wish a very Happy Easter😊
Today , since morning I have been continuously working with my SSL certificate team and they have helped a lot in conversion to .cer /.pem and root-ca.pem.
But unfortunately , while browsing the URL , get the below error:

[root@sekaissecdetection kibana]# systemctl status kibana.service
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2021-04-01 13:37:45 CEST; 32min ago
Main PID: 11885 (node)
Tasks: 11 (limit: 26213)
Memory: 249.9M
CGroup: /system.slice/kibana.service
└─11885 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist
Apr 01 13:37:53 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:53Z","tags":["info","plugins","watcher"],"pid":11885,"message":"Your basic license does not support watcher. Please upgr>
Apr 01 13:37:53 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:53Z","tags":["info","plugins","monitoring","monitoring","kibana-monitoring"],"pid":11885,"message":"Starting monitoring >
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["error","elasticsearch","data"],"pid":11885,"message":"[version_conflict_engine_exception]: [task:Lens-lens>
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["error","elasticsearch","data"],"pid":11885,"message":"[version_conflict_engine_exception]: [task:Actions-a>
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["error","elasticsearch","data"],"pid":11885,"message":"[version_conflict_engine_exception]: [task:endpoint:>
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["error","elasticsearch","data"],"pid":11885,"message":"[version_conflict_engine_exception]: [task:Alerting->
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["error","elasticsearch","data"],"pid":11885,"message":"[version_conflict_engine_exception]: [task:apm-telem>
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["listening","info"],"pid":11885,"message":"Server running at https://10.64.97.71:5601"}
Apr 01 13:37:54 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:54Z","tags":["info","http","server","Kibana"],"pid":11885,"message":"http server running at https://10.64.97.71:5601"}
Apr 01 13:37:55 sekaissecdetection.hubseka.ericsson.net kibana[11885]: {"type":"log","@timestamp":"2021-04-01T11:37:55Z","tags":["warning","plugins","reporting"],"pid":11885,"message":"Enabling the Chromium sandbox provides an additiona>
lines 1-19/19 (END)
Also , have attached the kibana.yml and elasticsearch.yml file for reference .
Lastly, recently around 2 weeks back , have updated the Wazuh version from 3.12 to 4.1 in our CentOS 8 Linux system.
|
Components |
Previous Version |
Upgraded Version |
|
Wazuh |
3.12 |
4.1 |
|
Elasticsearch |
7.6 |
7.10.2 |
|
Filebeat |
7.6 |
7.10.2 |
|
Kibana |
7.6 |
7.10.2 |
Yes very happy and blessed to be in Ericsson😊
I am bit more curious on your guidance as of now, certificate extensions are all correct and then why its still not running, also they are all server certificate validated by a trusted authorization.
Please guide on the same.
BR
/Prachi
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/7f724274-8f6f-415a-b74b-c45936ebdce9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/DBAPR07MB6920C9D1912978D1DB9BDE4B967B9%40DBAPR07MB6920.eurprd07.prod.outlook.com.
Hi Pedro and Team,
Any pointers?
BR
/Prachi
Hi Pedro,
Thank you so much for the time and efforts, I really appreciate your technical skills, communication skills, the way you interpret the concept and explain to the users like us is incredible.
Thanks a ton to you Pedro. You resolved the issue so smoothly.
I feel every company needs such dedicated employees like you, Wazuh is the lucky one to have you😊
Br
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/c74a448a-8063-4ce2-b9e4-887db4d8512cn%40googlegroups.com.