Hello again, Damian
Thank you for still responding our question
We have waiting for service running, clear the browser history, cache etc but still "Wazuh dashboard server is not ready yet"
We have try to verify the certificate with this command and result:
# openssl verify -CAfile /etc/wazuh-dashboard/path to Sectigo/RootCA.crt /etc/wazuh-dashboard/path to Sectigo/cert.pem
Output:
C = ID, ST = Our Region, O = Our Organization, CN = *.Our Domain
error 20 at 0 depth lookup: unable to get local issuer certificate
error /etc/wazuh-dashboard/path to Sectigo/cert.pem: verification failed
Then, because its no OK, then we try Your suggestion to convert certificate to CRT, in this case we do to Sectigo cert.pem and to dashboard.pem in /etc/wazuh-dashboard/certs
# openssl x509 -inform PEM -outform DER -in /etc/wazuh-dashboard/path to Sectigo/cert.pem -out /etc/wazuh-dashboard/path to Sectigo/cert.crt
and so with
# openssl x509 -inform PEM -outform DER -in
/etc/wazuh-dashboard/certs/dashboard.pem -out /etc/wazuh-dashboard/path to Sectigo/dashboard.crt
Change cert ownership to wazuh-dashboard and and then we edit opensearch-dashboards.yml to this:
server.host: 0.0.0.0
server.port: 443
opensearch.hosts:
https://localhost:9200opensearch.ssl.verificationMode: certificate
#opensearch.username:
#opensearch.password:
opensearch.requestHeadersWhitelist: ["securitytenant","Authorization"]
opensearch_security.multitenancy.enabled: false
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
server.ssl.enabled: true
server.ssl.key: "/etc/wazuh-dashboard/path to Sectigo/private.key"
server.ssl.certificate: "/etc/wazuh-dashboard/path to Sectigo/cert.pem"
opensearch.ssl.certificateAuthorities: ["/etc/wazuh-dashboard/path to Sectigo/cert.crt"]
uiSettings.overrides.defaultRoute: /app/wazuh
Then restart wazuh-dashboard
# systemctl restart wazuh-dashboard
Wait for a while, and still couldnt access wazuh-dashboard GUI
here the output from # systemctl status wazuh-dashboard -l:
wazuh-dashboard.service - wazuh-dashboard
Loaded: loaded (/etc/systemd/system/wazuh-dashboard.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-08-11 09:16:16 WIB; 23min ago
Main PID: 133754 (node)
Tasks: 11 (limit: 9442)
Memory: 122.4M
CGroup: /system.slice/wazuh-dashboard.service
└─133754 /usr/share/wazuh-dashboard/bin/../node/bin/node --no-warnings --max-http-header-size=65536 --unhandled-rejections=warn /usr/share/wazuh-dashboard>
Aug 11 09:39:29 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:29Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:32 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:32Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:34 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:34Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:37 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:37Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:39 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:39Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:42 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:42Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:44 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:44Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:47 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:47Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:49 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:49Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
Aug 11 09:39:52 etap opensearch-dashboards[133754]: {"type":"log","@timestamp":"2022-08-11T02:39:52Z","tags":["error","opensearch","data"],"pid":133754,"message":"[ConnectionError]: unable to verify the first certificate"}
and here the output from # journalctl -u wazuh-dashboard --no-pager | grep -iE 'WARN|ERROR'
Jul 27 09:29:31 etap opensearch-dashboards[913217]: {"type":"log","@timestamp":"2022-07-27T02:29:31Z","tags":["error","opensearch","data"],"pid":913217,"message":"[cluster_block_exception]: index [.kibana_2] blocked by: [FORBIDDEN/8/index write (api)];"}
Jul 27 09:29:31 etap opensearch-dashboards[913217]: {"type":"log","@timestamp":"2022-07-27T02:29:31Z","tags":["error","opensearch","data"],"pid":913217,"message":"[cluster_block_exception]: index [.kibana_2] blocked by: [FORBIDDEN/8/index write (api)];"}
Jul 27 09:29:31 etap opensearch-dashboards[913217]: {"type":"log","@timestamp":"2022-07-27T02:29:31Z","tags":["error","opensearch","data"],"pid":913217,"message":"[cluster_block_exception]: index [.kibana_2] blocked by: [FORBIDDEN/8/index write (api)];"}
Jul 27 09:30:54 etap opensearch-dashboards[913217]: {"type":"error","@timestamp":"2022-07-27T02:30:54Z","tags":["connection","client","error"],"pid":913217,"level":"error","error":{"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n","name":"Error","stack":"Error: 140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"},"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"}
Jul 27 09:30:54 etap opensearch-dashboards[913217]: {"type":"error","@timestamp":"2022-07-27T02:30:54Z","tags":["connection","client","error"],"pid":913217,"level":"error","error":{"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n","name":"Error","stack":"Error: 140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"},"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"}
Jul 27 09:30:54 etap opensearch-dashboards[913217]: {"type":"error","@timestamp":"2022-07-27T02:30:54Z","tags":["connection","client","error"],"pid":913217,"level":"error","error":{"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n","name":"Error","stack":"Error: 140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"},"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"}
Jul 27 09:30:54 etap opensearch-dashboards[913217]: {"type":"error","@timestamp":"2022-07-27T02:30:54Z","tags":["connection","client","error"],"pid":913217,"level":"error","error":{"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n","name":"Error","stack":"Error: 140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"},"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"}
Jul 27 09:30:54 etap opensearch-dashboards[913217]: {"type":"error","@timestamp":"2022-07-27T02:30:54Z","tags":["connection","client","error"],"pid":913217,"level":"error","error":{"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n","name":"Error","stack":"Error: 140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"},"message":"140244707522368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46\n"}
Sorry before