ProjectionsManager is failing because there's no SSL certificate available.
See original GitHub issueHi 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
:
- In method
EnableProjection
I replaced:
var manager = new ProjectionsManager(connection.Settings.Log, connection.Settings.GossipSeeds[0].EndPoint, TimeSpan.FromSeconds(30));
With:
var httpSchema = GetHttpSchema(connection.Settings);
var manager = new ProjectionsManager(connection.Settings.Log, connection.Settings.GossipSeeds[0].EndPoint, TimeSpan.FromSeconds(30), httpSchema: httpSchema);
-
In the method
CreateProjection
I did the same as the previous one. -
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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah I see, you only need to commit to the clone you created https://github.com/AbdoDabbas/Aggregates.NET then you can create a pull request from those changes!
@charlessolar I did a pull request.