Skip to content

Commit

Permalink
Disable self signed certs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Apr 1, 2024
1 parent e2b5508 commit b30c23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NAPS2.Escl.Server/EsclServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task Start()
// Try to generate a self-signed certificate if the caller hasn't provided one
if (!SecurityPolicy.HasFlag(EsclSecurityPolicy.ServerDisableHttps) && Certificate == null)
{
await Task.Run(() => Certificate = CertificateHelper.GenerateSelfSignedCertificate(Logger));
// await Task.Run(() => Certificate = CertificateHelper.GenerateSelfSignedCertificate(Logger));
}
if (SecurityPolicy.HasFlag(EsclSecurityPolicy.ServerRequireHttps) && Certificate == null)
{
Expand Down

0 comments on commit b30c23b

Please sign in to comment.