We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8231984 commit d2f9db8Copy full SHA for d2f9db8
README.md
@@ -265,6 +265,24 @@ httpProxy.createServer({
265
}).listen(443);
266
```
267
268
+##### HTTP -> HTTPS (using a PKCS12 client certificate)
269
+
270
+```js
271
+//
272
+// Create an HTTP proxy server with an HTTPS target
273
274
+httpProxy.createProxyServer({
275
+ target: {
276
+ protocol: 'https:',
277
+ host: 'my-domain-name',
278
+ port: 443,
279
+ pfx: fs.readFileSync('path/to/certificate.p12'),
280
+ passphrase: 'password',
281
+ },
282
+ changeOrigin: true,
283
+}).listen(8000);
284
+```
285
286
**[Back to top](#table-of-contents)**
287
288
#### Proxying WebSockets
0 commit comments