---
slug: "scoop-install-ssl-tils-WebException"
title: "When Trying to Install Scoop, \"Could Not Create SSL/TLS Secure Channel\" Error Occurs"
description: "When trying to install scoop"
url: "https://www.ytyng.com/en/blog/scoop-install-ssl-tils-WebException"
publish_date: "2018-02-26T04:19:09Z"
created: "2018-02-26T04:19:09Z"
updated: "2026-02-27T10:44:12.358Z"
categories: ["Windows"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20260124/7afd7b4e1f8c4120bc9dc21ac841db81.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# When Trying to Install Scoop, "Could Not Create SSL/TLS Secure Channel" Error Occurs

<p>When trying to install scoop</p>
<pre>An exception occurred while calling "DownloadFile" with "2" arguments: "The request was aborted: Could not create a secure SSL/TLS channel."<br />Location: Line: 151 Character: 5<br />+&nbsp;&nbsp;&nbsp;&nbsp; $wc.downloadFile($url,$to)<br />+&nbsp;&nbsp;&nbsp;&nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp;&nbsp;&nbsp; + CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NotSpecified: (:) [], ParentContainsErrorRecordException<br />&nbsp;&nbsp;&nbsp; + FullyQualifiedErrorId : WebException</pre>
<p>If this happens.</p>
<p></p>
<p></p>
<p>※ If the scoop installation fails, even if you run the installer again, it will show the message:</p>
<pre><span class="pl-s">Scoop is already installed. Run 'scoop update' to get the latest version.</span></pre>
<p>and the installation will fail.</p>
<p>In that case,</p>
<p>you should download and execute the <a href="https://github.com/lukesampson/scoop/blob/master/bin/install.ps1">install.ps1</a> script from the following link:</p>
<p><a href="https://github.com/lukesampson/scoop/blob/master/bin/install.ps1">https://github.com/lukesampson/scoop/blob/master/bin/install.ps1</a></p>
<p></p>
<p>However, if you run it as is, the same error message will appear and the process will stop. Therefore, you should comment out the following block in install.ps1:</p>
<pre># prep<br />if(installed 'scoop') {<br /> write-host "Scoop is already installed. Run 'scoop update' to get the latest version." -f red<br /> # don't abort if invoked with iex&mdash;&mdash;that would close the PS session<br /> if($myinvocation.mycommand.commandtype -eq 'Script') { return } else { exit 1 }<br />}</pre>
<p></p>
<p>Then, when you execute the script, it might stop with the above error:</p>
<pre>An exception occurred while calling "DownloadFile" with "2" arguments: "The request was aborted: Could not create a secure SSL/TLS channel."<br />Location: Line: 151 Character: 5<br />+&nbsp;&nbsp;&nbsp;&nbsp; $wc.downloadFile($url,$to)<br />+&nbsp;&nbsp;&nbsp;&nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp;&nbsp;&nbsp; + CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NotSpecified: (:) [], ParentContainsErrorRecordException<br />&nbsp;&nbsp;&nbsp; + FullyQualifiedErrorId : WebException</pre>
<p>In that case, add the following code to the top of install.ps1:</p>
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;">
<div><span style="color: #9cdcfe;">[Net.ServicePointManager]</span><span style="color: #d4d4d4;">::SecurityProtocol </span><span style="color: #d4d4d4;">=</span><span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">[Net.SecurityProtocolType]</span><span style="color: #d4d4d4;">::Tls11</span></div>
<div><span style="color: #9cdcfe;">[Net.ServicePointManager]</span><span style="color: #d4d4d4;">::SecurityProtocol </span><span style="color: #d4d4d4;">=</span><span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">[Net.SecurityProtocolType]</span><span style="color: #d4d4d4;">::Tls12</span></div>
<div><span style="color: #9cdcfe;">[System.Net.ServicePointManager]</span><span style="color: #d4d4d4;">::ServerCertificateValidationCallback </span><span style="color: #d4d4d4;">=</span><span style="color: #d4d4d4;"> {</span><span style="color: #569cd6;">$true</span><span style="color: #d4d4d4;">}</span></div>
</div>
<p></p>
<p>By doing this, you should be able to install scoop using install.ps1.</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
