From 2da501925cd5431f5f99a5b8494630634816230f Mon Sep 17 00:00:00 2001
From: Sean Anastasi <sean@anasta.si>
Date: Wed, 27 Feb 2019 12:03:50 -0800
Subject: [PATCH] Fix example of PKCS12 cert use

The `pfx` and `passphrase` args should be passed inside the `ssl` option, just like in the previous PEM examples.
---
 README.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index ea73dca..d63c26d 100644
--- a/README.md
+++ b/README.md
@@ -276,8 +276,10 @@ httpProxy.createProxyServer({
     protocol: 'https:',
     host: 'my-domain-name',
     port: 443,
-    pfx: fs.readFileSync('path/to/certificate.p12'),
-    passphrase: 'password',
+    ssl: {
+      pfx: fs.readFileSync('path/to/certificate.p12'),
+      passphrase: 'password',
+    },
   },
   changeOrigin: true,
 }).listen(8000);
-- 
GitLab