From dbc0c2021e802592546e766dea5d39a3103c5710 Mon Sep 17 00:00:00 2001
From: Mark McDowall <markus.mcd5@gmail.com>
Date: Thu, 26 Sep 2013 14:07:39 -0700
Subject: [PATCH] Fixed sslcert registration arguments

---
 NzbDrone.Host/AccessControl/SslAdapter.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/NzbDrone.Host/AccessControl/SslAdapter.cs b/NzbDrone.Host/AccessControl/SslAdapter.cs
index dced23f96..ddb2e7201 100644
--- a/NzbDrone.Host/AccessControl/SslAdapter.cs
+++ b/NzbDrone.Host/AccessControl/SslAdapter.cs
@@ -36,7 +36,12 @@ namespace NzbDrone.Host.AccessControl
                 return;
             }
 
-            var arguments = String.Format("netsh http add sslcert ipport=0.0.0.0:{0} certhash={1} appid={{{2}}}", _configFileProvider.SslPort, _configFileProvider.SslCertHash, APP_ID);
+            var arguments = String.Format("http add sslcert ipport=0.0.0.0:{0} certhash={1} appid={{{2}}}",
+                                            _configFileProvider.SslPort,
+                                            _configFileProvider.SslCertHash,
+                                            APP_ID);
+
+            //TODO: Validate that the cert was added properly, invisible spaces FTL
             _netshProvider.Run(arguments);
         }