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