我总是使用套接字命令行工具对我正在编写的程序进行快速套接字测试。 http://w21.org/jnickelsen/socket/
我想知道是否有类似的命令行工具来设置快速 ssl 套接字客户端/服务器来测试东西。
编辑:简单回答
所以为了让那些可能想知道同样事情的人更容易:
如果您想成为客户端,请使用 openssl 的 s_client:
openssl s_client -connect host:port
如果你想成为服务器使用 openssl 的 s_server:
openssl s_server -accept <port> -key <keyfile> -cert <certfile>
服务器用于测试的 Quick And Dirty 证书和 key :
openssl req -x509 -nodes -days 365 -newkey rsa -keyout keyfile.key -out certfile.crt
最佳答案
快速 SSL 客户端:
openssl s_client -connect <host>:<port>
快速 SSL 服务器:
openssl s_server -accept <port>
关于用于 SSL 服务器的 Linux 命令行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20889130/