Skip to content

Commit

Permalink
Change certificate fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Oct 13, 2024
1 parent aa2d916 commit 6e59fe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Mortein/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.OpenApi.Models;
using Mortein.Mqtt;
using Mortein.Mqtt.Extensions;
using Mortein.Types;
using NodaTime.Serialization.SystemTextJson;
Expand Down Expand Up @@ -92,6 +93,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Description = "Ping application."
}
);

endpoints.MapGet("/cert", async () => (await MqttAuthentication.GetAwsMqttCertificate()).ToString());
});
}
}

0 comments on commit 6e59fe5

Please sign in to comment.