我正在尝试使用 httperf 对我的网站进行负载测试。如何支持 ssl 证书?
我正在尝试运行这个等价物:
curl -k -vX POST 'https://<my url>' -d @data.json --header "Content-Type: application/json" --cert <my cert file> --key <my private key>
我使用什么命令来指定私钥和证书?我只看到以下选项:
--ssl
Specifies that all communication between httperf and the server should utilize the Secure Sockets Layer (SSL) protocol. This option is available only if httperf was compiled with SSL support enabled.
--ssl-ciphers=L
This option is only meaningful if SSL is in use (see --ssl option). This option specifies the list L of cipher suites that httperf may use in negotiating a secure connection with the server. If the list contains more than one cipher suite, the ciphers must be separated by a colon. If the server does not accept any of the listed cipher suites, the connection establishment will fail and httperf will exit immediately. If this option is not specified when the --ssl option is present then httperf will use all of the SSLv3 cipher suites provided by the underlying SSL library.
--ssl-no-reuse
This option is only meaningful if SSL and sessions are in use (see --ssl, --wsess, --wsesslog). When an SSL connection is established the client receives a session identifier (session id) from the server. On subsequent SSL connections, the client normally reuses this session id in order to avoid the expense of repeating the (slow) SSL handshake to establish a new SSL session and obtain another session id (even if the client attempts to re-use a session id, the server may force the client to renegotiate a session). By default httperf reuses the session id across all connections in a session. If the --ssl-no-reuse option is in effect, then httperf will not reuse the session id, and the entire SSL handshake will be performed for each new connection in a session.
我没有看到任何关于如何使用证书/密钥的信息。