square-evening-11103
06/26/2024, 5:07 PMtry
{
<http://Log.Info|Log.Info>("Binding Certificate to the staging domain");
var certBindingStaging = new CertificateBinding($"web-{args.Platform}-{args.StackName}-certificateBinding-staging", new()
{
CertificateId = certificateStaging.Id,
HostnameBindingId = stageBinding.Id,
SslState = "SniEnabled"
},
new()
{
DependsOn = { stageBinding, certificateStaging },
Parent = this,
});
<http://Log.Info|Log.Info>("Certificate binding done");
}
catch (Exception ex)
{
<http://Log.Info|Log.Info>($"Error binding certificate: {ex.Message}");
}