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

ignore TLS certificate error (self signed) #37

Closed
franck34 opened this issue Mar 17, 2021 · 2 comments
Closed

ignore TLS certificate error (self signed) #37

franck34 opened this issue Mar 17, 2021 · 2 comments

Comments

@franck34
Copy link

franck34 commented Mar 17, 2021

Hi,

Is there a way for ignoring SSL/TLS Certificats error ? My websocket dev server use TLS with a self signed certificate.

Note that after retrying after 2 seconds, recws enter into a loop for 2 seconds before closing ws, see #38

@loeffel-io
Copy link
Member

There is the TLSClientConfig for this

@franck34
Copy link
Author

For memory:

        ws := recws.RecConn{
		KeepAliveTimeout: 10 * time.Second,
	}

	ws.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}

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