mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-22 18:41:33 +03:00
Add Test integ SSL client Authentication
This commit is contained in:
parent
0543431490
commit
18f4ba1afe
@ -33,5 +33,10 @@ if ($LASTEXITCODE) { Throw }
|
||||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8002) {powershell write-host -foregroundcolor Green "server-ssl-signedbyca up"} else {powershell write-host -foregroundcolor Red "server-ssl-signedbyca is down" ; exit 1}
|
||||
|
||||
Start-Process powershell -WindowStyle Hidden { python ssl/server.py 8003 ssl/server/cert.pem true 2>&1 > server-ssl-client-authent.log }
|
||||
if ($LASTEXITCODE) { Throw }
|
||||
sleep 5
|
||||
if (netstat -ano | Select-String LISTENING | Select-string 127.0.0.1:8003) {powershell write-host -foregroundcolor Green "server-ssl-client-authent up"} else {powershell write-host -foregroundcolor Red "server-ssl-client-authent is down" ; exit 1}
|
||||
|
||||
cd $actual_dir
|
||||
|
||||
|
@ -45,6 +45,10 @@ echo -e "\n------------------ Starting ssl/server.py (Signed by CA)"
|
||||
(python3 ssl/server.py 8002 ssl/server/cert.pem false > server-ssl-signedbyca.log 2>&1 || true) &
|
||||
check_listen_port "ssl/server.py" 8002
|
||||
|
||||
echo -e "\n------------------ Starting ssl/server.py (Self-signed certificate + Client certificate authentication)"
|
||||
(python3 ssl/server.py 8003 ssl/server/cert.selfsigned.pem true > server-ssl-client-authent.log 2>&1 || true) &
|
||||
check_listen_port "ssl/server.py" 8003
|
||||
|
||||
echo -e "\n------------------ Starting mitmdump"
|
||||
(mitmdump --listen-host 127.0.0.1 --listen-port 8888 --modify-header "/From-Proxy/Hello" >mitmproxy.log 2>&1 ||true) &
|
||||
check_listen_port "mitmdump" 8888
|
||||
|
2
integration/ssl/client_authentication.curl
Normal file
2
integration/ssl/client_authentication.curl
Normal file
@ -0,0 +1,2 @@
|
||||
curl --cacert ssl/server/cert.selfsigned.pem --cert ssl/client/cert.pem --key ssl/client/key.pem 'https://localhost:8003/hello'
|
||||
|
1
integration/ssl/client_authentication.exit
Normal file
1
integration/ssl/client_authentication.exit
Normal file
@ -0,0 +1 @@
|
||||
0
|
3
integration/ssl/client_authentication.hurl
Normal file
3
integration/ssl/client_authentication.hurl
Normal file
@ -0,0 +1,3 @@
|
||||
GET https://localhost:8003/hello
|
||||
HTTP 200
|
||||
|
6
integration/ssl/client_authentication.options
Normal file
6
integration/ssl/client_authentication.options
Normal file
@ -0,0 +1,6 @@
|
||||
--cacert
|
||||
ssl/server/cert.selfsigned.pem
|
||||
--cert
|
||||
ssl/client/cert.pem
|
||||
--key
|
||||
ssl/client/key.pem
|
Loading…
Reference in New Issue
Block a user