Skip to content
Snippets Groups Projects
Commit f61a9623 authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Removed dead code

parent 8444886a
No related branches found
No related tags found
2 merge requests!18Feature/651 outsource crypto,!13Feature/559 validate certificates
......@@ -31,7 +31,6 @@ public class CertificateHelper {
var certificateChain = new X509Chain();
certificateChain.ChainPolicy.ExtraStore.AddRange(extras ?? Array.Empty<X509Certificate2>());
// certificate.ExportToPem($"./temp/{Guid.NewGuid().ToString()}");
_logger?.LogDebug("Issuers: {Issuer}", certificate.Issuer);
if (rootCertificate != null) {
......@@ -75,13 +74,7 @@ public class CertificateHelper {
_logger?.Log(logLevel, "Certificate does not match FIT-Connect requirements");
return false;
}
// var valid = certificates.Aggregate(true,
// (result, cert) => result
// && ValidateCertificate(cert, out _, root, certificates.ToArray(), logLevel)
// // && cert.Verify()
// );
var valid = ValidateCertificate(certificates.First(), out _, root, certificates.ToArray(),
logLevel);
return valid && fitConnectRequirements;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment