From 2087681506a5b35fd458eda156148f2b5418209c Mon Sep 17 00:00:00 2001 From: Spyros Garyfallos Date: Mon, 16 Jul 2018 15:38:10 -0700 Subject: [PATCH] hub server certificate config issue --- TypeEdge.Host/.nuspec | 4 ++-- TypeEdge.Host/TypeEdgeHost.cs | 6 +++++- TypeEdge.Proxy/TypeEdge.Proxy.csproj | 2 +- TypeEdge/TypeEdge.csproj | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/TypeEdge.Host/.nuspec b/TypeEdge.Host/.nuspec index 03b715e..9e94693 100644 --- a/TypeEdge.Host/.nuspec +++ b/TypeEdge.Host/.nuspec @@ -2,14 +2,14 @@ TypeEdge.Host - 0.2.2 + 0.2.3 paloukari paloukari false Package Description - + diff --git a/TypeEdge.Host/TypeEdgeHost.cs b/TypeEdge.Host/TypeEdgeHost.cs index 6068ba7..bf11d40 100644 --- a/TypeEdge.Host/TypeEdgeHost.cs +++ b/TypeEdge.Host/TypeEdgeHost.cs @@ -173,12 +173,16 @@ namespace TypeEdge.Host //Calculate the Hub Enviroment Varialbes var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); + Environment.SetEnvironmentVariable(HubService.Constants.EdgeHubServerCertificateFileKey, + Path.Combine(currentLocation, @"Certificates/edge-hub-server/cert/edge-hub-server.cert.pfx")); + Environment.SetEnvironmentVariable(HubService.Constants.SslCertEnvName, "edge-hub-server.cert.pfx"); + Environment.SetEnvironmentVariable(HubService.Constants.SslCertPathEnvName, Path.Combine(currentLocation, @"Certificates/edge-hub-server/cert")); - Environment.SetEnvironmentVariable("EdgeModuleHubServerCAChainCertificateFile", + Environment.SetEnvironmentVariable(HubService.Constants.EdgeHubServerCAChainCertificateFileKey, Path.Combine(currentLocation, @"Certificates/edge-chain-ca/cert/edge-chain-ca.cert.pem")); var storageFolder = Path.Combine(currentLocation, @"Storage"); diff --git a/TypeEdge.Proxy/TypeEdge.Proxy.csproj b/TypeEdge.Proxy/TypeEdge.Proxy.csproj index dd9df10..42006cb 100644 --- a/TypeEdge.Proxy/TypeEdge.Proxy.csproj +++ b/TypeEdge.Proxy/TypeEdge.Proxy.csproj @@ -3,7 +3,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb TypeEdge.Proxy - 0.2.2 + 0.2.3 paloukari true diff --git a/TypeEdge/TypeEdge.csproj b/TypeEdge/TypeEdge.csproj index 00b3b4b..65cf4c4 100644 --- a/TypeEdge/TypeEdge.csproj +++ b/TypeEdge/TypeEdge.csproj @@ -3,7 +3,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb TypeEdge - 0.2.2 + 0.2.3 paloukari ../../TypeEdgeNuGets true