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

Support for SNI (multiple secure domains on one IP) #547

Closed
stefan-reich opened this issue Jul 4, 2019 · 2 comments
Closed

Support for SNI (multiple secure domains on one IP) #547

stefan-reich opened this issue Jul 4, 2019 · 2 comments

Comments

@stefan-reich
Copy link

stefan-reich commented Jul 4, 2019

Hi,

as far as I understand, Java 8 supports SNI in SSLServerSocketFactory. I need SNI to work since I have two domains (botcompany.de and agi.blue) - both served directly with NanoHTTPD :)

Java's SNI stuff is just hard to set up (typical overcomplicated Java APIs)...

And NanoHTTPD doesn't seem to have any support for SNI out of the box.

So... has anyone done this before?

@stefan-reich
Copy link
Author

I think I'm solving it. Had to make a special class for it.

@stefan-reich
Copy link
Author

Yes, it works now!! https://agi.blue | https://botcompany.de - both served from one NanoHTTPD instance and one IP. Mail me if you want to do this too.

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