大网数据广告活动
服务器运维问答

Can I enforce a cipher suite with powershell

· 52CE 我爱测

Can I enforce a cipher suite to be used when connecting to a TLS web site via a script. For monitoring and trouble shooting purposes, my goal is to create a powershell script that checks if a remote server is able to use a specif…

问题原文

原帖链接 · ZEDA-NL · CC BY-SA 3.0

Can I enforce a cipher suite to be used when connecting to a TLS web site via a script.

For monitoring and trouble shooting purposes, my goal is to create a powershell script that checks if a remote server is able to use a specific cypher. I'm using the command Invoke-WebRequest now to connect to the websiste, but as far as I can see, there is no option to enforce a cipher.

Google was not friendly to me either.

Thanks for helping out.

PS: Powershell is prefered, but command line or vbscript is also fine.

已采纳解答

原帖链接 · Kevin C · CC BY-SA 4.0

You kind of can.

When looking at this page, you can set your own Cipher with the highest priority to use:

PS C:\>Enable-TlsCipherSuite -Name "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" -Position 0

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-02-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。