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: Thu, 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</features> 30<server> 31https Server-localhost-sv.pem 32</server> 33 <name> 34simple HTTPS GET with base64-sha256 public key pinning 35 </name> 36 <command> 37--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey sha256//+JYNkp2GTGRgrvZMUkOxbFJQQqYpwNE6toGmBjz00D8= https://localhost:%HTTPSPORT/2041 38</command> 39# Ensure that we're running on localhost because we're checking the host name 40<precheck> 41perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" 42</precheck> 43</client> 44 45# 46# Verify data after the test has been "shot" 47<verify> 48<protocol> 49GET /2041 HTTP/1.1 50Host: localhost:%HTTPSPORT 51User-Agent: curl/%VERSION 52Accept: */* 53 54</protocol> 55</verify> 56</testcase> 57