Leave a Reply

2 comments

  1. Hey, I was stuck for a whole day on trying to use v3/index.json link. It was driving me crasy. Thanks for this article that is really complete!

    Clebam Reply

  2. I received the invalid URI error! I followed your steps and tried.. to invoke…

    Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a receive.

    In order to fix this, I had to run…
    Add-Type @”
    using System.Net;
    using System.Security.Cryptography.X509Certificates;
    public class TrustAllCertsPolicy : ICertificatePolicy {
    public bool CheckValidationResult(
    ServicePoint srvPoint, X509Certificate certificate,
    WebRequest request, int certificateProblem) {
    return true;
    }
    }
    “@

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    [System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy

    Rachael Deja Reply