server.setSecureContext(options)
新增于: v11.0.0
-
options<Object> 包含来自tls.createSecureContext()options参数(例如key、cert、ca等)的任何可能属性的对象。\
options<Object> An object containing any of the possible properties from thetls.createSecureContext()optionsarguments (e.g.key,cert,ca, etc).
server.setSecureContext() 方法替换现有服务器的安全上下文。与服务器的现有连接不会中断。
\The server.setSecureContext() method replaces the secure context of an
existing server. Existing connections to the server are not interrupted.