Fix setting TLS options

Parameter order in array_interesect_key was preventing new options
being set.
Merge pull request #10 from leight/master

Fix setting TLS options