From ae7c1a3555dbdd321ca2f945582a889be9e648c2 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Tue, 10 Jul 2018 09:48:12 +0200 Subject: [PATCH] Revert "Disable certificate trust" This reverts commit 8603173b9b7410dc2d732b485d5d024fd46214ad. --- source/app.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app.d b/source/app.d index d3fe4138..6cd358e8 100644 --- a/source/app.d +++ b/source/app.d @@ -72,10 +72,10 @@ void main() version (linux) { logInfo("Enforcing certificate trust."); - //HTTPClient.setTLSSetupCallback((ctx) { - //ctx.useTrustedCertificateFile(certPath); - //ctx.peerValidationMode = TLSPeerValidationMode.trustedCert; - //}); + HTTPClient.setTLSSetupCallback((ctx) { + ctx.useTrustedCertificateFile(certPath); + ctx.peerValidationMode = TLSPeerValidationMode.trustedCert; + }); } import dub.internal.utils : jsonFromFile;