I have written a proxy server in Java and I need it to work as an HTTPS server which signs on its own certificate开发者_开发知识库 or uses a free CA.
What should I do?
Honestly I would just use apache in the frontend. The fact is that apache already act as a proxy, and that it add SSL on top on it.
this is exactly what I have made for my startup. We have a bunch of colaboratives tools online, protected with basic http authentication and SSL. this proved to be really effective and work well.
Or if you prefer and if you respect the servlet standard, then you can tell Tomcat for exemple to server page using SSL.
Anyway, my guess would be that you want to do it yourself and not just add a layer on your stack using an existing solution.
But if what interrest you is just the proxy mechanism and you don't care about how the content is encrypted you can be fine with this kind of solution.
精彩评论