tlsSocket.setKeyCert(context)
- 
context<Object> | <tls.SecureContext> 包含来自tls.createSecureContext()options的至少key和cert属性的对象,或使用tls.createSecureContext()本身创建的 TLS 上下文对象。¥
context<Object> | <tls.SecureContext> An object containing at leastkeyandcertproperties from thetls.createSecureContext()options, or a TLS context object created withtls.createSecureContext()itself. 
tlsSocket.setKeyCert() 方法设置用于套接字的私钥和证书。如果你希望从 TLS 服务器的 ALPNCallback 中选择服务器证书,这主要很有用。
¥The tlsSocket.setKeyCert() method sets the private key and certificate to use
for the socket. This is mainly useful if you wish to select a server certificate
from a TLS server's ALPNCallback.