http://empyrean.cash/blog/implementing-ssl-encryption-for-enhanced-network-security/