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

Trouble with tls.createSecureContext #452

Closed
renambot-uic opened this issue Jan 15, 2015 · 1 comment
Closed

Trouble with tls.createSecureContext #452

renambot-uic opened this issue Jan 15, 2015 · 1 comment

Comments

@renambot-uic
Copy link

I have a HTTPS server running fine with crypto.createCredentials (using a real SSL certificate):
crypto.createCredentials({key: key, cert: crt, ca: ca}).context

I understand this is deprecated.

If I replace the code with:
tls.createSecureContext({key: key, cert: crt, ca: ca}).context
the code runs but I can't get a connection with a browser, it times out.

If I run: openssl s_client -connect example.server.com:443
it seems to validate fine ( Verify return code 0 (ok) )

Is there anything else to do to be compatible with node.js ?

Could it be related to #402

@renambot-uic
Copy link
Author

My mistake, the SNI callback changed signature (added a callback parameter).
It works now.

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

1 participant