您好我使用mountebank工具创建了一个HTTPS服务 - 但是我得到了" Socket Hang Up"冒名顶替者创造时的错误。以下是遵循的步骤
Impostor配置:
{
"port": 4549,
"protocol": "https",
"mutualAuth": true,
"key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDDvLC9pnYOPJ54\nWrATkuuA7c41aVOy6nBnbK7ogIn/H+p2Fl8Xubqov1vkoIbo3mktM07G1cOGGPhD\nh3UXQl8+xjlPO+VBGT9H80eR+1G8VcBLPxuPHtua/CfLX2g4AzNeSoHPw89o5Xkv\nWhXjadyg7RDt80dfYKzXoElHBvM4nR1ngIRGFrin+PPavVZp/LTRsHWHSp8EOsLy\nf/+RHYYoNDDt/Yhla2sfFRJz5Sqzpmerzeaww1kZg2f9uuJoTT+NzNfmQ+jdnyW/\nMbtG2O0aXit+wRzBOVhcOqn2pYL4kvDXsVOWhTt4J3j1F+3rXXDWrUtKOV/WdE3z\nnqBQOT91AgMBAAECggEAdrR7Nzi5hd7LeE//Uo+aVUFi+k9bHDlDW+W0mXpCtj9j\n0KO2ncvcYLRUhW25A4bGoEvqbXl8L1n7TfDbWPS+kHJklSHM4dLu5rKqZ+TTZ/VV\nPg0SqJRdODvN4m+E49tFDtz+psKoiYQJH2dxuM4dqFa9GqGcWkJl8ArcBcA4Rs8q\nSij1fpqoVHCM0iELJZdWgZrsTHwZ07BJ057+GUbYrirXa5lYvM3/i0HafirWxJBT\nAGxdMw+bGcKsxYaIlwq4jGOKb/3txwIOgZJ6PG1XCqiiEjVhbNDEvwLhgSIEnkct\n14bhylRupKDWU425pnKWPFiek6ucEwMzzDqr6fj6gQKBgQDlhFhnITKd7YoHirwP\nLLmI8JNrxrMlWqoRimXtVVknlV60byIULBOigPDK1nMnC2kfGmXWueR1SQd6nXhE\na2r0sPqHX7AL2mzYYph8endTwKv1DQLLF25Hw2ht90pSaT70SRjc5GtVDVGA0tp6\nQYiRnmSYpd2fOTPB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b21haW5WYWxpZGF0aW9uU2VjdXJlU2VydmVy\nQ0EuY3J0MCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5jb21vZG9jYS5jb20wLQYD\nVR0RBCYwJIIRKi5pbmZvc3RyZXRjaC5jb22CD2luZm9zdHJldGNoLmNvbTCCAQUG\nCisGAQQB1nkCBAIEgfYEgfMA8QB3AO5Lvbd1zmC64UJpH6vhnmajD35fsHLYgwDE\ne4l6qP3LAAABYpSbyqIAAAQDAEgwRgIhAJUu1vCoNhXPYiPnBOLCmPBCbCSgru9t\n5lLfAkXWwm/vAiEAy8WAtA2+ZTjYNXboJlVjkXaSeaYmVgU9bseV2NGCqesAdgB0\nftqDMa0zEJEhnM4lT0Jwwr/9XkIgCMY3NXnmEHvMVgAAAWKUm8rkAAAEAwBHMEUC\nIG85+amRuKn/dEygyPSWSeSHq+tHA3UPwa/DXtuzRlgqAiEA7d4N0zQZ/611p5yA\nmnIPs+LRV/JcvafXHQTkaNA+7KQwDQYJKoZIhvcNAQELBQADggEBAIM1pD3NRA5c\nQo8tPWF2qq+mA4cPULpt/XJsFrKFqcDf14XTGML0adS06ZpjvnjMmUoIt3gpuXgf\n1t+mtJ8Ze7vBz1gUpB5eBIvcU10IHVUTbqVv2PlnadQZ6yDy+4SPEfwdJelMDt6d\nTcvFDWB+KqUKz5a2YvCif/WGGWmQ09sVuZ7QCMK3JD7ym+L1k9G5cFfm9Kf7pAQE\n4PO/4kYM8+DN4ujqkaT20DN4Zh+jZVM/p5CwvqPe0HFv7zYiukFENJeFcMMtwS+n\n8XI3MU3VWT1L2+PbdPJ+sKd6fDwIIJmWVMsOT5tFwB/zIkwXv1aEjHfHprDuLPi4\nRKBzyPQF3Ts=\n-----END CERTIFICATE-----",
"stubs": [
{
"responses": [
{
"is": {
"body": {
"accountNum": "123456789",
"statusCode": 200
}
}
}
],
"predicates": [
{
"equals": {
"method": "GET",
"path": "/test",
"headers": {
"Accept": "text/plain",
"Name": "abc"
}
}
}
]
}
]
}