tls: Fix for createHash() when using requestCert: true