How to test non self-signed certificate on NATs #3843
danielserrao
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @danielserrao, the correct way to test this is using the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using the nats helm-chart at http://github.com/nats-io/k8s and I did setup TLS by enabling it at https://github.com/nats-io/k8s/blob/main/helm/charts/nats/values.yaml#L290. After that the pods were running successfully and the certificates are installed at
/etc/nats-certs/clients/default-ssl-cert/
, so it seems fine, but when I tested with the commandopenssl s_client -tls1_2 -showcerts -connect <nats-url>:8222
from another pod in the same cluster I get:This seems to be because nats send first an answer with the INFO protocol before sending the TLS ack according to #2804 (comment).
So I tried to test it by executing the command
curl http://<nats-url>:8222
because apparently we can test it by accessing it via browser with HTTPS (https://docs.nats.io/running-a-nats-service/configuration/securing_nats/tls#creating-self-signed-certificates-for-testing) but I get the following error:curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
On the nats pods logs I don't get any error.
I also tried to test connectivity with the command
nats account info --server nats://<nats-url>:4222 --user=<username> --password="<password>"
which returned the connection information without any errors.I have the following questions:
Beta Was this translation helpful? Give feedback.
All reactions