Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS with self-signed certificate #13

Open
munjalpatel opened this issue Oct 19, 2020 · 0 comments · May be fixed by #14
Open

TLS with self-signed certificate #13

munjalpatel opened this issue Oct 19, 2020 · 0 comments · May be fixed by #14

Comments

@munjalpatel
Copy link

Hello,

I have NATS server setup using a self-signed certificate.
When I try to connect to my cluster, I get the following error:

Unhandled exception: SSL_connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed (OpenSSL::SSL::Error)
  from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/openssl/ssl/socket.cr:34:11 in 'initialize'
  from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/openssl/ssl/socket.cr:3:5 in 'new'
  from lib/nats/src/nats/connection.cr:528:7 in 'process_first_info'
  from lib/nats/src/nats/connection.cr:97:7 in 'initialize'
  from lib/nats/src/nats/connection.cr:55:5 in 'new'
  from lib/nats/src/nats/connection.cr:139:7 in 'new'
  from lib/nats/src/nats/connection.cr:131:7 in 'new'
  from src/server.cr:13:13 in 'initialize'
  from src/server.cr:12:5 in 'new'
  from src/identity.cr:6:12 in '__crystal_main'
  from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:105:5 in 'main_user_code'
  from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:91:7 in 'main'
  from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:114:3 in 'main'

How do I correctly specify TLS options?

@munjalpatel munjalpatel linked a pull request Oct 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant