test2079 1.1 KB

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