Deploy a website with Client Certificates Required

We got an .Net Core Web App that we deploy with Octopus
After every deploy we have to manually configure (Require SSL, Client certificates Require)
How can we change out Octopus Deploy so that octopus set these settings?

Hi @christian.lars.johansson,

Thanks for getting in touch!

I can’t see any options for this in our built-in steps or in the community steps. So, the easiest way would be to enable the Custom Deployment Scripts feature
e.g.

And then configure a Post-Deployment script to enable this option. Something like this should work:
Set-WebConfiguration -Location "<websiteName>" -Filter 'system.webserver/security/access' -Value 'Ssl,SslNegotiateCert'

Regards,
Paul

1 Like

Thanks, that works!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.