Hey everyone! I seem to be having some issues generating the certificates for OpenSearch. What I did was that I followed the “Generate certificates” guide and was able to get OpenSearch working just fine. I generated the certs using the script shown on the guide.
But the problem comes up when setting up TLS for OpenSearch Dashboards. I followed the Configure TLS for OpenSearch Dashboards. But when I deploy it to my k8s cluster OpenSearch Dashboards shows the following error:
{"type":"log","@timestamp":"2021-12-10T16:29:56Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: unable to verify the first certificate"}
After some searching around it seems that the error means that the issuer CA is missing on the OpenSearch Dashboards (opensearch-project/documentation-website/issues/144).
With all that said, the OpenSearch Dashboard TLS guide does indeed show the issuer CA on the demo config:
So coming from the OpenSearch TLS guide and generating all the certs using the script shown there, the generation of the intermediate-ca.pem cert seems to be missing from that script. How is this intermediate-ca.pem generated?
@derek-diaz The intermediate CA cert is used to sign certificates on behalf of Root CA. This is common for commercially signed certificates. It is not mandatory to have an intermediate CA certificate. In the local network, you can use Root CA as a signing authority.
That’s why the mentioned procedure doesn’t contain the generation of an intermediate CA certificate.
The reported error could mean that OpenSearch Dashboards possibly can’t access the Root CA or Root CA is not the one that signed the TLS certificate.
Could you share your OpenSearch Dashboards and OpenSearch yaml config files?
Hey @pablo here’s my yaml file. I currently mount all the certs using secretMounts. This is part of the values.yaml for Helm. When I check the files in the pod, they are mounted in the correct location. So maybe I am missing something else?
That values file is a file I created to override the default values. This is to enable SSL on both OpenSearch and OpenSearch Dashboards on Kubernetes. The only chart that seems to be having this issue is the OpenSearch Dashboards Chart.