lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTPS |
| 5 | HTTP GET |
| 6 | PEM certificate |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | </reply> |
| 14 | |
| 15 | # |
| 16 | # Client-side |
| 17 | <client> |
| 18 | <features> |
| 19 | SSL |
| 20 | SSLpinning |
| 21 | </features> |
| 22 | <server> |
| 23 | https Server-localhost-sv.pem |
| 24 | </server> |
| 25 | <name> |
| 26 | HTTPS wrong base64-sha256 pinnedpubkey but right CN |
| 27 | </name> |
| 28 | <command> |
| 29 | --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey sha256//bSIggTf+ikMG0CtmDlpMVBd7yi7H1md4URogRPqerso= https://localhost:%HTTPSPORT/2042 |
| 30 | </command> |
| 31 | # Ensure that we're running on localhost because we're checking the host name |
| 32 | <precheck> |
| 33 | perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" |
| 34 | </precheck> |
| 35 | </client> |
| 36 | |
| 37 | # |
| 38 | # Verify data after the test has been "shot" |
| 39 | <verify> |
| 40 | <errorcode> |
| 41 | 90 |
| 42 | </errorcode> |
| 43 | </verify> |
| 44 | </testcase> |