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

NodeJS Error : not working when rejectUnauthorized is true #3

Open
CafaAsbl opened this issue Aug 23, 2016 · 2 comments
Open

NodeJS Error : not working when rejectUnauthorized is true #3

CafaAsbl opened this issue Aug 23, 2016 · 2 comments

Comments

@CafaAsbl
Copy link

Hi,

I'm trying to set up eID Authentication on my server, i'm glad to have found your content, wasn't expected this is so easy to use eID card.

All thing work fully, i have all certificate of my country (Belgium), and i can read data on my card when the server respond in the login page.

But, when i set the option rejectUnauthorized to true, the login failed to respond, i got this error on my browser :
ERR_EMPTY_RESPONSE

And, i got this error on my server :
{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

My eID is clearly rejected by the server, i can't find the reason.

Any idea ?

Thx in advance for help and/or advice.

PS: Is there a way to read more information on the card only with the Node server ?

@konstantint
Copy link
Owner

I'm not very familiar with all the details of how ExpressJS handles SSL authentication (and don't at the moment have time to debug this). If you say that rejectUnauthorized=true drops the connection, then perhaps the server cannot fully validate the certificate or the certificate chain.

Perhaps you should try the Apache setup as well - this will let you know whether your problem is server-specific or certificate-specific.

@CafaAsbl
Copy link
Author

Ho yes ! Good idea !

If it's a certificate-specific problem, what do you think i have to analyse first ?

Thx !!

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