This commit is contained in:
Stef Heyenrath
2018-09-30 11:25:14 +02:00
committed by GitHub
parent ada50d893f
commit 04bcca6e14
5 changed files with 26 additions and 58 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using System.Security.Cryptography.X509Certificates;
namespace WireMock.HttpsCertificate
@@ -26,6 +25,7 @@ namespace WireMock.HttpsCertificate
throw new FileNotFoundException("No certificate found with specified Thumbprint or SubjectName.", thumbprintOrSubjectName);
}
}
// Use the first matching certificate.
return matchingCertificates[0];
}