How to implement SSL/TLS pinning in Node.js