test2035 750 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. </reply>
  13. #
  14. # Client-side
  15. <client>
  16. <features>
  17. SSL
  18. SSLpinning
  19. </features>
  20. <server>
  21. https Server-localhost-sv.pem
  22. </server>
  23. <name>
  24. HTTPS wrong DER pinnedpubkey but right CN
  25. </name>
  26. <command>
  27. --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey %SRCDIR/certs/Server-localhost-sv.der https://localhost:%HTTPSPORT/%TESTNUMBER
  28. </command>
  29. # Ensure that we're running on localhost because we're checking the host name
  30. <precheck>
  31. perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
  32. </precheck>
  33. </client>
  34. #
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <errorcode>
  38. 90
  39. </errorcode>
  40. </verify>
  41. </testcase>