如何使我编写的代理服务器充当 HTTPS 服务器?
我用 Java 编写了一个代理服务器,我需要它作为 HTTPS 服务器来工作,该服务器在自己的证书上签名或使用免费的 CA。
我应该怎么办?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
老实说,我只会在前端使用 apache。事实上,apache 已经充当代理,并且在其之上添加了 SSL。
这正是我为我的初创公司所做的。我们有很多在线协作工具,受基本的 http 身份验证和 SSL 保护。事实证明这确实有效并且效果很好。
或者,如果您愿意并且尊重 servlet 标准,那么您可以告诉 Tomcat 使用 SSL 来服务器页面。
无论如何,我的猜测是您想自己做,而不仅仅是使用现有的解决方案在堆栈上添加一层。
但是,如果您感兴趣的只是代理机制,并且您不关心内容如何加密,那么您可以使用这种解决方案。
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.