简体   繁体   English

易于SSL服务器进行测试

[英]Easy SSL server for testing

I'm new to the world of networking but I'm working on creating an application that will make an SSL connection to a server. 我是网络世界的新手,但我正在创建一个与服务器建立SSL连接的应用程序。 Right now the server is not yet setup but I'd like to begin testing on my application I'm building. 现在服务器还没有设置,但我想开始测试我正在构建的应用程序。

Is there an easy way that I can set up a local Apache server and configure it for SSL? 有没有一种简单的方法可以设置本地Apache服务器并为SSL配置它?

I'm new to networking so be gentle with me. 我是网络新手,所以对我很温柔。

Edit: 编辑:
I'm looking more for how to set up the server functionality. 我正在寻找更多如何设置服务器功能。 I can set up a VM but how do I make it so it accepts incoming socket connections? 我可以设置一个虚拟机但是如何创建它以便接受传入的套接字连接?

If you don't care about the content returned by the server, I'd suggest openssl s_server -www . 如果您不关心服务器返回的内容,我建议使用openssl s_server -www You'll need a certificate, but Dave G's answer describes how to do that (s_server will need to know where the cert is also, but openssl s_server help will show you the appropriate flags). 你需要一个证书,但Dave G的答案描述了如何做到这一点(s_server需要知道证书的位置,但openssl s_server help会显示相应的标志)。

Depending on which platform you on the tools may already be at your disposal. 取决于您可以使用工具的哪个平台。

this is how to create a "self-signed" certificate 这是如何创建“自签名”证书

http://www.tc.umn.edu/~brams006/selfsign.html http://www.tc.umn.edu/~brams006/selfsign.html

You will get security warnings but you can establish and utilize an SSL connection. 您将收到安全警告,但您可以建立并使用SSL连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM