Permalink
Browse files

Add support for rejectUnauthorized in socket options.

  • Loading branch information...
1 parent 2274061 commit 2dd8215b794854f13cda060c20db09fed6b70dd9 @nsabovic nsabovic committed Sep 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/connection.js
View
@@ -42,6 +42,7 @@ function Connection (options) {
ca: null,
gateway: 'gateway.push.apple.com',
port: 2195,
+ rejectUnauthorized: true,
enhanced: true,
errorCallback: undefined,
cacheLength: 100
@@ -133,6 +134,7 @@ Connection.prototype.connect = function () {
socketOptions.cert = this.certData;
socketOptions.passphrase = this.options.passphrase;
socketOptions.ca = this.options.ca;
+ socketOptions.rejectUnauthorized = this.options.rejectUnauthorized;
this.socket = tls.connect(
this.options['port'],

0 comments on commit 2dd8215

Please sign in to comment.