From 01b6afd8d97cb47641c59dbdce7092e3ce09a35b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 27 Dec 2022 12:00:12 +0100 Subject: [PATCH] test417: verify %{certs} output --- tests/data/Makefile.inc | 1 + tests/data/test417 | 83 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 tests/data/test417 diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index fe1bb1c74c..9b4d95b112 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -68,6 +68,7 @@ test380 test381 test383 test384 test385 test386 test387 test388 test389 \ test390 test391 test392 test393 test394 test395 test396 test397 test398 \ test399 test400 test401 test402 test403 test404 test405 test406 test407 \ test408 test409 test410 test411 test412 test413 test414 test415 test416 \ +test417 \ \ test430 test431 test432 test433 test434 test435 test436 \ \ diff --git a/tests/data/test417 b/tests/data/test417 new file mode 100644 index 0000000000..9061f8332b --- /dev/null +++ b/tests/data/test417 @@ -0,0 +1,83 @@ + + + +HTTPS +%{certs} + + + +# Server-side + + +HTTP/1.1 200 OK +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 7 + +nomnom + + + +# Client-side + + +SSL +!wolfssl +!bearssl +!mbedtls +!rustls + + +http +https + + +%{certs} + + +--insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER -w '%{certs}' + + + + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +s/^(.*):(.*)[\r\n]*// + + +nomnom +-----BEGIN CERTIFICATE----- +MIIERDCCAyygAwIBAgIGDzR1UZ/TMA0GCSqGSIb3DQEBCwUAMGgxCzAJBgNVBAYT +Ak5OMTEwLwYDVQQKDChFZGVsIEN1cmwgQXJjdGljIElsbHVkaXVtIFJlc2VhcmNo +IENsb3VkMSYwJAYDVQQDDB1Ob3J0aGVybiBOb3doZXJlIFRydXN0IEFuY2hvcjAe +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