-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses the system nginx (assumed to be available) to start a server, then grabs a small html file and a larger 5MB download with the system curl (using system openssl).
- Loading branch information
Showing
2 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
daemon off; | ||
master_process off; | ||
pid nginx.pid; | ||
|
||
events { | ||
} | ||
|
||
http { | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
access_log access.log; | ||
|
||
server { | ||
listen 8443 ssl; | ||
server_name localhost; | ||
ssl_certificate ../../../test-ca/rsa/server.cert; | ||
ssl_certificate_key ../../../test-ca/rsa/server.key; | ||
|
||
location = / { | ||
return 200 \"hello world\n\"; | ||
} | ||
location /ssl-agreed { | ||
return 200 \"protocol:$ssl_protocol,cipher:$ssl_cipher\n\"; | ||
} | ||
location /ssl-server-name { | ||
return 200 \"server-name:$ssl_server_name\n\"; | ||
} | ||
location /ssl-was-reused { | ||
return 200 \"reused:$ssl_session_reused\n\"; | ||
} | ||
# not currently implemented: | ||
location /ssl-offer { | ||
return 200 \"ciphers:$ssl_ciphers,curves:$ssl_curves\n\"; | ||
} | ||
location /ssl-early-data { | ||
return 200 \"early-data:$ssl_early_data\n\"; | ||
} | ||
location /ssl-client-auth { | ||
return 200 \"s-dn:$ssl_client_s_dn\ni-dn:$ssl_client_i_dn\nserial:$ssl_client_serial\nfp:$ssl_client_fingerprint\nverify:$ssl_client_verify\nv-start:$ssl_client_v_start\nv-end:$ssl_client_v_end\nv-remain:$ssl_client_v_remain\ncert:\n$ssl_client_cert\n\"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters