sipp 中是否有使用 tls 1.2 版的选项
Is there an option in sipp to use tls version 1.2
我正在使用 SIPp 软件测试 SBC 中一些与 TLS 1.2 相关的代码流。我将 SBC 配置为使用 TLS v1.2。但是每当我 运行 使用 tls 的 SIPp 客户端时,它都会退出并显示错误 "Returning EPIPE on invalid socket: 0x1e73060"。
搜索 EPIPE 错误会导致连接在远程端终止。此外,在跟踪中可以看到,对于 Client Hello,使用的 TLS 协议版本是 1.0。每当我将 SBC 上的配置更改为使用 TLSv1.0 时,一切正常。是否有编译时间或 运行 时间的选项来设置 SIPp 中的 TLS 版本?
使用的 SIPp 版本是 3.3
导航到 SIPp "src" 目录。在 "socket.cpp" 文件中,将 TLS 版本从 TLSv1_method() 更改为 TLSv1_2_method() 并再次编译 SIPp。
在可用于 SIPp 3.3 的最新 tar.gz 中,需要在 sipp.cpp 文件中进行更改。如上所述,将 TLSv1_method() 更改为 TLSv1_2_method()。
之后,继续并重新编译 sipp。
static ssl_init_status FI_init_ssl_context (void)
{
sip_trp_ssl_ctx = SSL_CTX_new( TLSv1_2_method() );
if ( sip_trp_ssl_ctx == NULL ) {
ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_2_method failed");
return SSL_INIT_ERROR;
}
sip_trp_ssl_ctx_client = SSL_CTX_new( TLSv1_2_method() );
if ( sip_trp_ssl_ctx_client == NULL)
{
ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_2_method failed");
return SSL_INIT_ERROR;
}
我正在使用 SIPp 软件测试 SBC 中一些与 TLS 1.2 相关的代码流。我将 SBC 配置为使用 TLS v1.2。但是每当我 运行 使用 tls 的 SIPp 客户端时,它都会退出并显示错误 "Returning EPIPE on invalid socket: 0x1e73060"。 搜索 EPIPE 错误会导致连接在远程端终止。此外,在跟踪中可以看到,对于 Client Hello,使用的 TLS 协议版本是 1.0。每当我将 SBC 上的配置更改为使用 TLSv1.0 时,一切正常。是否有编译时间或 运行 时间的选项来设置 SIPp 中的 TLS 版本?
使用的 SIPp 版本是 3.3
导航到 SIPp "src" 目录。在 "socket.cpp" 文件中,将 TLS 版本从 TLSv1_method() 更改为 TLSv1_2_method() 并再次编译 SIPp。
在可用于 SIPp 3.3 的最新 tar.gz 中,需要在 sipp.cpp 文件中进行更改。如上所述,将 TLSv1_method() 更改为 TLSv1_2_method()。 之后,继续并重新编译 sipp。
static ssl_init_status FI_init_ssl_context (void)
{
sip_trp_ssl_ctx = SSL_CTX_new( TLSv1_2_method() );
if ( sip_trp_ssl_ctx == NULL ) {
ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_2_method failed");
return SSL_INIT_ERROR;
}
sip_trp_ssl_ctx_client = SSL_CTX_new( TLSv1_2_method() );
if ( sip_trp_ssl_ctx_client == NULL)
{
ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_2_method failed");
return SSL_INIT_ERROR;
}