Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit c182bac

Browse files
authored
Disabled SSL3 and Enabled TLS1.2 in callback service. (#403)
* Disabled SSL3 and Enabled TLS1.2 in callback service.
1 parent 003e1ef commit c182bac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Validation.Common/Validators/Vcs/VcsCallbackServer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ public VcsCallbackServerStartup()
7474

7575
public void Configuration(IAppBuilder app)
7676
{
77+
// Ensure that SSLv3 is disabled and that Tls v1.2 is enabled.
78+
ServicePointManager.SecurityProtocol &= ~SecurityProtocolType.Ssl3;
79+
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
80+
7781
if (Services.Logging.ApplicationInsights.Initialized)
7882
{
7983
app.Use<RequestTrackingMiddleware>();

0 commit comments

Comments
 (0)