Posted On November 2, 2021

Quick & Useful Snippet to Set SSL TLS Protocol of PowerShell

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Quick & Useful Snippet to Set SSL TLS Protocol of PowerShell
  $requiredTls='Tls12'
  $availableSslProtocols=[enum]::getnames([net.securityprotocoltype])
  if([Net.ServicePointManager]::SecurityProtocol -notin $requiredTls -and $requiredTls -in $availableSslProtocols){
      [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::$requiredTls
  }

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

HAProxy with Multiple SSL Certs

Method 1: --------- defaults   log 127.0.0.1 local0   option tcplog   frontend ft_test   mode http   bind…

Basic CSS: Inherit Styles from the Body Element

<style>body {background-color: black;}</style>

Windows Cleanup

#Clean Up the WinSxS FolderDism.exe /online /Cleanup-Image /StartComponentCleanup#Clean Up C:\Temp Folderdel c:\temp -Recurse -Force#Cleanup Event…