windows Service 2008R2 开启tls1.2的代码怎么编写

今天就跟大家聊聊有关windows Service 2008R2 开启tls1.2的代码怎么编写,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

一下代码试用与windows Service 2008R2开启TLS1.2 方便使用.例如微信小程序使用外部接口时,通信地址必须开启tls1.2以上
之间保存下面代码放到txt改成注册表reg格式双击使用即可

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

看完上述内容,你们对windows Service 2008R2 开启tls1.2的代码怎么编写有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注行业资讯频道,感谢大家的支持。