Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ProjectionsManager is failing because there's no SSL certificate available.

See original GitHub issue

Hi again 😃, In EventStore v20 they use TLS by default, so when I try to run EventStore without enabling TLS, on my dev machine, I face an exception about SSL connection and I figured out (by EventStore’s users help) that if I’m not using secure connection I need to specify the HTTP schema in the ProjectionsManager creation like this:

var manager = new ProjectionsManager(client.Settings.Log, client.Settings.GossipSeeds[0].EndPoint, TimeSpan.FromSeconds(5), httpSchema: _httpSchema);

I cloned the source code of Aggregates.NET and did the changes needed and it worked !. Two changes in file EventStoreConsumer.cs:

  1. In method EnableProjection I replaced:
var manager = new ProjectionsManager(connection.Settings.Log, connection.Settings.GossipSeeds[0].EndPoint, TimeSpan.FromSeconds(30));


var httpSchema = GetHttpSchema(connection.Settings);

var manager = new ProjectionsManager(connection.Settings.Log, connection.Settings.GossipSeeds[0].EndPoint, TimeSpan.FromSeconds(30), httpSchema: httpSchema);
  1. In the method CreateProjection I did the same as the previous one.

  2. Method GetHttpSchema is as the following:

private string GetHttpSchema(ConnectionSettings settings)
	return settings.UseSslConnection ? "https" : "http";

What do you think? is that a correct solution for such an issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

charlessolarcommented, Aug 17, 2020

Ah I see, you only need to commit to the clone you created then you can create a pull request from those changes!

AbdoDabbascommented, Aug 17, 2020

@charlessolar I did a pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Do SSL Certificate Errors Mean: Causes & How to Fix ...
This error means that the validity period of the SSL certificate has expired. Every certificate has a validity period. The client will reject ......
Read more >
Internal error on SSL certificates · Issue #180
So basiclly create a new proxy host "Request a new SSL certificate". Then confirm, once you have done it remodify the host and...
Read more >
Troubleshoot SSL certificates | Load Balancing
Certificate provisioning failed because of a configuration issue with your domain's CAA record. Ensure that you have followed the correct procedure.
Read more >
NGINX Proxy Manager - Unable to renew or re-add SSL ...
Hello folks. I'm experiencing a bizarre situation with the Let's Encrypt SSL Certificates on my NGINX Proxy Manager.
Read more >
How to force Visual Studio to re-create the SSL certificate ...
The solve for me was navigating to %APPDATA%\ASP.NET\https or C:\Users\{user}\AppData\Roaming\ASP.NET\https and removing the certificates there.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found