Skip to content

Commit

Permalink
Merge pull request #121 from yuriyostapenko/fix-tls
Browse files Browse the repository at this point in the history
Configure SslOptions for endpoints using amqps scheme
  • Loading branch information
mookid8000 authored Mar 19, 2024
2 parents d31f929 + 19559e5 commit 37805a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rebus.RabbitMq/Internals/ConnectionManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
Expand Down Expand Up @@ -126,7 +126,8 @@ public ConnectionManager(string connectionString, string inputQueueAddress, IReb
{
try
{
return new AmqpTcpEndpoint(new Uri(uriString));
var uri = new Uri(uriString);
return new AmqpTcpEndpoint(uri, uri.Scheme == "amqps" ? new SslOption(uri.Host, enabled: true) : null);
}
catch (Exception exception)
{
Expand Down

0 comments on commit 37805a3

Please sign in to comment.