Merge pull request #119 from mregen/cert_fixes

Cert fixes
This commit is contained in:
Erich Barnstedt
2017-01-24 09:16:25 +01:00
committed by GitHub
3 changed files with 23 additions and 2 deletions
@@ -0,0 +1,10 @@
{
"profiles": {
"NetCoreConsoleClient": {
"commandName": "Project",
"environmentVariables": {
"COMPlus_ReadyToRunExcludeList": "System.Security.Cryptography.X509Certificates"
}
}
}
}
@@ -0,0 +1,11 @@
{
"profiles": {
"NetCoreConsoleServer": {
"commandName": "Project",
"environmentVariables": {
"Key": "Value",
"COMPlus_ReadyToRunExcludeList": "System.Security.Cryptography.X509Certificates"
}
}
}
}
@@ -224,7 +224,7 @@ namespace Opc.Ua
var nameValues = new ArrayList();
nameValues.Add(domainNames[0]);
nameValues.Add(applicationName);
nameValues.Add(subjectName);
// self signed
X509Name subjectDN = new X509Name(nameOids, nameValues);
@@ -480,7 +480,7 @@ namespace Opc.Ua
// create the subject name,
if (String.IsNullOrEmpty(subjectName))
{
subjectName = Utils.Format("CN={0}/DC={1}", applicationName, domainNames[0]);
subjectName = applicationName;
}
}
#endregion