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

SSL: error state on socket #293

Open
timafh opened this issue Mar 11, 2018 · 4 comments
Open

SSL: error state on socket #293

timafh opened this issue Mar 11, 2018 · 4 comments

Comments

@timafh
Copy link

timafh commented Mar 11, 2018

Hi,

we are using wifidog with ssl on a LEDE device with a self-compiled image.
For our Auth-Server we use a letsencrypt certificate.
The Auth-Server we use is a self-developed c-daemon.

Now, when wifidog is pinging our auth-server over https we every time get cyassl/wolfssl error "error state on socket".

Any ideas what we can do?

@benoitg
Copy link
Member

benoitg commented Mar 11, 2018

The gateway does not speak https (and doesn't need to). Make sure your auth server can speak to the gateway over http. You should however speak to the client browser only over https.

@benoitg benoitg closed this as completed Mar 11, 2018
@mhaas
Copy link
Contributor

mhaas commented Mar 12, 2018

@benoitg I may be confused here, but I think I added support for encrypted auth server communication about three years ago.

@timafh please post logs.

@mhaas mhaas reopened this Mar 12, 2018
@benoitg
Copy link
Member

benoitg commented Mar 12, 2018

@mhaas Humm, so you did. Sorry about that. Out of curiosity, what was the rationale behind supporting SSL for gateway to auth communication?

@mhaas
Copy link
Contributor

mhaas commented Mar 13, 2018

I am not sure. Encryption is better than no encryption, and I wouldn't want any Mac addresses etc flying around unencrypted.

I believe the real reason was an implentation detail on my side: Facebook requires my auth server to be reachable via https. And the url would be different between https and non-https as I used a reverse proxy given by my provider.

Still doesn't make a lot of sense. I guess I did it because it felt like the right thing to do :)

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

3 participants