| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTPS | 
 | 5 | HTTP GET | 
 | 6 | PEM certificate | 
 | 7 | </keywords> | 
 | 8 | </info> | 
 | 9 |  | 
 | 10 | # | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data> | 
 | 14 | HTTP/1.1 200 OK | 
 | 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 16 | Server: test-server/fake | 
 | 17 | Content-Length: 7 | 
 | 18 |  | 
 | 19 | MooMoo | 
 | 20 | </data> | 
 | 21 | </reply> | 
 | 22 |  | 
 | 23 | # | 
 | 24 | # Client-side | 
 | 25 | <client> | 
 | 26 | <features> | 
 | 27 | SSL | 
 | 28 | SSLpinning | 
 | 29 | Schannel | 
 | 30 | </features> | 
 | 31 | <server> | 
 | 32 | https Server-localhost-sv.pem | 
 | 33 | </server> | 
 | 34 |  <name> | 
 | 35 | simple HTTPS GET with base64-sha256 public key pinning (Schannel variant) | 
 | 36 |  </name> | 
 | 37 |  <setenv> | 
 | 38 | # This test is pointless if we're not using the schannel backend | 
 | 39 | CURL_SSL_BACKEND=schannel | 
 | 40 |  </setenv> | 
 | 41 |  <command> | 
 | 42 | --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey sha256//+JYNkp2GTGRgrvZMUkOxbFJQQqYpwNE6toGmBjz00D8= --ssl-revoke-best-effort https://localhost:%HTTPSPORT/%TESTNUMBER | 
 | 43 | </command> | 
 | 44 | # Ensure that we're running on localhost because we're checking the host name | 
 | 45 | <precheck> | 
 | 46 | perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" | 
 | 47 | </precheck> | 
 | 48 | </client> | 
 | 49 |  | 
 | 50 | # | 
 | 51 | # Verify data after the test has been "shot" | 
 | 52 | <verify> | 
 | 53 | <protocol> | 
 | 54 | GET /%TESTNUMBER HTTP/1.1
 | 
 | 55 | Host: localhost:%HTTPSPORT
 | 
 | 56 | User-Agent: curl/%VERSION
 | 
 | 57 | Accept: */*
 | 
 | 58 | 
 | 
 | 59 | </protocol> | 
 | 60 | </verify> | 
 | 61 | </testcase> |