It appears that secureOptions is an undocumented feature to fix issues with broken server. See joynet/node #5119

- fixes issue introduced in #666
Merge pull request #821 from nw/master

added secureOptions back