this might be kinda nit-picky, but ...

since the only place you're calling this, you do `options = configureSsl(options)`, could you change this to clone `options` and then mutate the clone, instead of mutating `options` directly?