test2041 998 B

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