Skip to content

Commit

Permalink
set cipher to TLS_AES_128_GCM_SHA256 (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
aansaarii authored Sep 25, 2022
1 parent 9ce2439 commit b4ebac6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
if [ $mode = "PT" ];then
mode="--port 80"
elif [ $mode = "TLS" ]; then
mode="--ssl --port 443"
mode="--ssl --port 443 --ssl-ciphers TLS_AES_128_GCM_SHA256"
else
echo "invalid encryption mode flag"
exit
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/media-streaming/client/files/videoperf/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ conn_init (Conn *conn)
if (param.ssl_cipher_list)
{
/* set order of ciphers */
int ssl_err = SSL_set_cipher_list (conn->ssl, param.ssl_cipher_list);
int ssl_err = SSL_set_ciphersuites (conn->ssl, param.ssl_cipher_list);

if (DBG > 2)
fprintf (stderr, "core_ssl_connect: set_cipher_list returned %d\n",
Expand Down
5 changes: 3 additions & 2 deletions benchmarks/media-streaming/server/files/nginx.location.append
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ server {
# root html;
# index index.html index.htm;
#
ssl on;

# ssl on;
ssl_certificate media_streaming_CS_4.crt;
ssl_certificate_key media_streaming_CS_4.key;
#
# ssl_session_timeout 5m;
#
ssl_protocols TLSv1.3;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_ciphers 'TLS13+AESGCM+AES128:EECDH+AES128';
ssl_prefer_server_ciphers on;
#
# location / {
Expand Down

0 comments on commit b4ebac6

Please sign in to comment.