Skip to content

TorSharpToolFetcher issue: The requested security protocol is not supported #104

@AlizerUncaged

Description

@AlizerUncaged

I get the following error

System.NotSupportedException: The requested security protocol is not supported.
   at System.Net.ServicePointManager.ValidateSecurityProtocol(SecurityProtocolType value)
   at System.Net.ServicePointManager.set_SecurityProtocol(SecurityProtocolType value)
   at Knapcode.TorSharp.TorSharpToolFetcher.EnableSecurityProtocols() in /_/src/TorSharp/TorSharpToolFetcher.cs:line 229

here's my code, copied right from the ReadMe

    public async Task SetupTor()
    {
        _logger.LogInformation($"Downloading tor...");
        using (var httpClient = new HttpClient())
        {
            var fetcher = new TorSharpToolFetcher(_settings, httpClient);
            await fetcher.FetchAsync();
        }
    }

screenshot
image

I use .NET 7, my host OS is Windows 11 x64

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions