Skip to content

C# Samples and TLS 1.2 #39

@rootberg

Description

@rootberg

It looks like on May 31st BP will be ending support for TLS 1.0 and 1.1. And I see that the C# sample project is using .Net 4.5. By default .Net 4.5 uses a TLS version prior to 1.2. I suggest upgrading the project to .Net 4.6 (this uses TLS 1.2 by default) or manually setting the SecurityProtocol to TLS 1.2 prior to making the connection in "PerformPost" in BluePay.cs. The exact code would look somthing like ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12.

Thank you, and thank you for keeping the samples up to date with the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions