powershell script enable tls 1.2
Shell
function disable-ssl-2.0
{
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -Force
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -name 'Enabled' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client' -name 'Enabled' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client' -name 'DisabledByDefault' -value '1' –PropertyType 'DWORD'
Write-Host 'Disabling SSLv2'
}
function disable-ssl-3.0
{
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -Force
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -name 'Enabled' -value '0' –PropertyType 'DWORD'
Write-Host 'Disabling SSLv3'
}
function disable-tls-1.0
{
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -Force
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -Force
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'Enabled' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'DisabledByDefault' -value '1' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -name 'Enabled' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -name 'DisabledByDefault' -value '1' –PropertyType 'DWORD'
Write-Host 'Disabling TLSv1.0'
}
function enable-tls-1.1
{
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -Force
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -Force
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -name 'Enabled' -value '1' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -name 'DisabledByDefault' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -name 'Enabled' -value '1' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -name 'DisabledByDefault' -value '0' –PropertyType 'DWORD'
Write-Host 'Enabling TLSv1.1'
}
function enable-tls-1.2
{
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Force
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Force
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -name 'Enabled' -value '1' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -name 'DisabledByDefault' -value '0' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -name 'Enabled' -value '1' –PropertyType 'DWORD'
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -name 'DisabledByDefault' -value '0' –PropertyType 'DWORD'
Write-Host 'Enabling TLSv1.2'
}
function enforce-tls-versions
{
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\RasMan\PPP\EAP\13' -Name 'TlsVersion' -value 'F00' –PropertyType 'DWORD'
}
disable-ssl-2.0
disable-ssl-3.0
disable-tls-1.0
enable-tls-1.1
enable-tls-1.2
enforce-tls-versions
Also in Shell:
- Title
- linux show version
- Category
- Shell
- Title
- how to install yum uitls
- Category
- Shell
- Title
- ImportError: No module named alsaaudio
- Category
- Shell
- Title
- edit default port for linux server
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- git remove branch
- Category
- Shell
- Title
- bash permissions
- Category
- Shell
- Title
- start mongodb
- Category
- Shell
- Title
- close chrome tab from command line ubuntu
- Category
- Shell
- Title
- how to find installed packages in ubuntu
- Category
- Shell
- Title
- how to zip a file in linx
- Category
- Shell
- Title
- install opencl library
- Category
- Shell
- Title
- create a screen screen session tmux
- Category
- Shell
- Title
- convert excel to csv command line linux
- Category
- Shell
- Title
- remove submodule git
- Category
- Shell
- Title
- ignore git ignore
- Category
- Shell
- Title
- git config core.autocrlf true
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- how ot get android notifications i ubuntu
- Category
- Shell
- Title
- timedatectl
- Category
- Shell
- Title
- install packages from jupyter notebook
- Category
- Shell
- Title
- FATAL module ucvideo not found
- Category
- Shell
- Title
- bash generate random number between 1 10
- Category
- Shell
- Title
- netstat install
- Category
- Shell
- Title
- bash find file with text
- Category
- Shell
- Title
- kubernetes service external ip pending
- Category
- Shell
- Title
- how to get application guid powershell
- Category
- Shell
- Title
- install redux-thunk
- Category
- Shell
- Title
- gpg: can't connect to the agent: IPC connect call failed
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- how to install pod
- Category
- Shell
- Title
- Macbook git user config global
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- install dateutil
- Category
- Shell
- Title
- how to pull from a particular branch in git
- Category
- Shell
- Title
- react navigation install
- Category
- Shell
- Title
- ansible-galaxy install to specific directory
- Category
- Shell
- Title
- install react bootstrap
- Category
- Shell
- Title
- update to wsl2
- Category
- Shell
- Title
- how to revert commit in git
- Category
- Shell
- Title
- how to change dotnet version
- Category
- Shell
- Title
- ubuntu bluetooth not turning on
- Category
- Shell
- Title
- pod install ruby: bad interpreter: No such file or directory
- Category
- Shell
- Title
- git find login
- Category
- Shell
- Title
- circleci skip
- Category
- Shell
- Title
- loop bash
- Category
- Shell
- Title
- linux remove folder and all his content
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- install rbenv
- Category
- Shell
- Title
- netstat column headers
- Category
- Shell
- Title
- linux install pip
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- powershell convert text 20MB to bytes
- Category
- Shell
- Title
- npm warn ws butterfly install peer dependencies
- Category
- Shell
- Title
- powershell upgrade
- Category
- Shell
- Title
- a2ensite example.
- Category
- Shell
- Title
- Run a command in the background witch automatically rerun Raw
- Category
- Shell
- Title
- babel json loader
- Category
- Shell
- Title
- kernel headers were not found vmware kali linux
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- not reinstalling packages on docker build
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- heic open linux
- Category
- Shell
- Title
- vagrant 16
- Category
- Shell
- Title
- check if kubernetes is running
- Category
- Shell
- Title
- docker exc into mongo shell
- Category
- Shell
- Title
- conda activate env
- Category
- Shell
- Title
- kill port ubuntu
- Category
- Shell
- Title
- git SSL certificate problem: certificate has expired
- Category
- Shell
- Title
- javascript execute powershell script
- Category
- Shell
- Title
- how to install gatsby gatsby-plugin-manifest
- Category
- Shell
- Title
- how to install cab file in ubuntu
- Category
- Shell
- Title
- linux view directory premmisiosns
- Category
- Shell
- Title
- create directory linux
- Category
- Shell
- Title
- linux check disk space
- Category
- Shell
- Title
- htaccess secure
- Category
- Shell
- Title
- how to restart docker linux
- Category
- Shell
- Title
- how to get divided number in mac terminal
- Category
- Shell
- Title
- git find out commit for tag
- Category
- Shell
- Title
- how to open file in linux
- Category
- Shell
- Title
- pipenv install virtual at same path
- Category
- Shell
- Title
- remove mysql
- Category
- Shell
- Title
- GVfs metadata is not supported. Fallback to TeplMetadataManager.
- Category
- Shell
- Title
- changing folder permission in linux
- Category
- Shell
- Title
- github graphql query to get your repos
- Category
- Shell
- Title
- linux query port use by pid
- Category
- Shell
- Title
- git undo pushed commit
- Category
- Shell
- Title
- git clone with folder name
- Category
- Shell
- Title
- undo git pull origin master into feature branch
- Category
- Shell
- Title
- how to run a create-react-app server
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- install macos on vmware ubuntu
- Category
- Shell
- Title
- install bully kali
- Category
- Shell
- Title
- linux move file
- Category
- Shell
- Title
- gzip folder with tar
- Category
- Shell
- Title
- linux c++ from console
- Category
- Shell
- Title
- shell hide tab
- Category
- Shell
- Title
- scp download file
- Category
- Shell
- Title
- angular install ngx-bootstrap
- Category
- Shell