We don't want bypass certificate validation on global level. Please provide the support for handling this to specific http request.
Please find the below snippet for with serilog -
Log.Logger = new LoggerConfiguration().Enrich.WithProperty("RequestId", _requestId).Enrich.WithProperty("Environment", _environment)
.MinimumLevel.Information()
.WriteTo.Console()
.WriteTo.EventCollector("xyz", "abc", source: "Machine", sourceType: "sourceApp1", host: "AWS Lambda", index: "appIndex")
.CreateLogger();