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 on server configuration #34

Open
jdsampayo opened this issue Jul 24, 2020 · 1 comment
Open

TLS on server configuration #34

jdsampayo opened this issue Jul 24, 2020 · 1 comment

Comments

@jdsampayo
Copy link

Hello! — I had an error trying to connect to a Rails server using certbot as HTTPS provider.

In order to connect from the client, I had to use:

uri = "wss://SERVERURL/cable/"
tls = {cert_chain_file: 'fullchain.pem', private_key_file: 'privkey.pem'}
client = ActionCableClient.new(uri, 'YourChannel', true, nil, tls)

The PEM files live here:
/etc/letsencrypt/live/YOURDOMAIN

Hope this helps someone.

Cheers!

@drale2k
Copy link

drale2k commented Sep 17, 2021

Why would you need the SSL cert on the client side?

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

No branches or pull requests

2 participants