diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-13 16:38:02 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-13 16:56:04 +0300 |
commit | cf9ec6d7151e1e6b4c3fddc9410705f1e43b7fd5 (patch) | |
tree | 46695401fcf61c9acae6dd76bb419b2f42173b12 | |
parent | 0e142e1ac4064674effcbcfbc42f141a76d87177 (diff) |
[Mono.Security] Consider _newFormat when building certificate collection in X509Store
It only looked at the legacy format where certificates had the *.cer
extension, the new BTLS store uses *.0 extension.
(cherry picked from commit 3aa59f2e6bddc77c8521bb0bf7ad76813ba5d880)
-rw-r--r-- | mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs b/mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs index e74c7be0dd9..536782fd0c2 100644 --- a/mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs +++ b/mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs @@ -387,7 +387,7 @@ namespace Mono.Security.X509 { if (!CheckStore (path, false)) return coll; // empty collection - string[] files = Directory.GetFiles (path, "*.cer"); + string[] files = Directory.GetFiles (path, _newFormat ? "*.0" : "*.cer"); if ((files != null) && (files.Length > 0)) { foreach (string file in files) { try { |