diff --git a/lib/client.js b/lib/client.js index 32d179f971..aea5dcef73 100644 --- a/lib/client.js +++ b/lib/client.js @@ -28,6 +28,13 @@ function Client(server, conn){ this.decoder = new server.parser.Decoder(); this.id = conn.id; this.request = conn.request; + if(conn.request.client && conn.request.client.getPeerCertificate){ + this.peerCertificate = conn.request.client.getPeerCertificate(); + }else + { + this.peerCertificate = null; + } + this.request = conn.request; this.setup(); this.sockets = {}; this.nsps = {};