Skip to content

Fix Linux/OSX HTTPS, OpenSSL, .NET Core bug #4

@nopara73

Description

@nopara73

.NET Core behaves differently on Windows and Linux. Maybe wait until it gets fixed?

3de217f

SslStream httpsStream;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
	httpsStream = new SslStream(stream, leaveInnerStreamOpen: true);
else // TODO: Fix this security vulnerability
{
	httpsStream = new SslStream(
		stream,
		leaveInnerStreamOpen: true,
		userCertificateValidationCallback: (a, b, c, d) => true);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions