InstallModuleFromGitHub icon indicating copy to clipboard operation
InstallModuleFromGitHub copied to clipboard

Add support to private repositories

Open junalmeida opened this issue 7 years ago • 1 comments

Instead of asking me my login and password, this module is failing when trying to access a private github repository:

A solicitação foi anulada: Não foi possível criar um canal seguro para SSL/TLS.
No C:\Program Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.2\InstallModuleFromGitHub.psm1:40 caractere:19
+                   Invoke-RestMethod $url -OutFile $OutFile
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

junalmeida avatar Nov 05 '18 18:11 junalmeida

Hi @junalmeida, I've created pull request #13 that solve both your issues. The error you pasted is standard powershell error with SSL, you may fix it by running following command first: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

mivalsten avatar Jan 28 '19 18:01 mivalsten