hub server certificate config issue

This commit is contained in:
Spyros Garyfallos 2018-07-16 15:38:10 -07:00
Родитель 1db5f6c839
Коммит 2087681506
4 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -2,14 +2,14 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>TypeEdge.Host</id>
<version>0.2.2</version>
<version>0.2.3</version>
<authors>paloukari</authors>
<owners>paloukari</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package Description</description>
<dependencies>
<group targetFramework=".NETCoreApp2.1">
<dependency id="TypeEdge" version="0.2.2" exclude="Build,Analyzers" />
<dependency id="TypeEdge" version="0.2.3" exclude="Build,Analyzers" />
<dependency id="Serilog.Extensions.Logging" version="1.4.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Sinks.Console" version="2.1.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="2.1.1" exclude="Build,Analyzers" />

Просмотреть файл

@ -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");

Просмотреть файл

@ -3,7 +3,7 @@
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>TypeEdge.Proxy</PackageId>
<Version>0.2.2</Version>
<Version>0.2.3</Version>
<Authors>paloukari</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

Просмотреть файл

@ -3,7 +3,7 @@
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>TypeEdge</PackageId>
<Version>0.2.2</Version>
<Version>0.2.3</Version>
<Authors>paloukari</Authors>
<PackageOutputPath>../../TypeEdgeNuGets</PackageOutputPath>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>