Core/set-sslcert-access.json
{
"Parameters": { "SSLCertName": { "Type": "string", "Description": "The certificate." }, "AppPoolName": { "Type": "string", "Description": "The name of the AppPool." } }, "Variables": { "Security.CertificateStore": "Cert:\\Localmachine\\My", "Security.SSL.CertificateThumbprint": "[GetCertificateThumbprint(parameter('SSLCertName'), variable('Security.CertificateStore'))]", "Security.SSL.CertificatePath": "[joinpath(variable('Security.CertificateStore'), variable('Security.SSL.CertificateThumbprint'))]" }, "Tasks": { "SetCertStorePermissions": { "Type": "FilePermissions", "Params": { "Path": "[ResolveCertificatePath(variable('Security.SSL.CertificatePath'))]", "Rights": [ { "User": "[concat('IIS AppPool\\', parameter('AppPoolName'))]", "FileSystemRights": [ "Full" ], "InheritanceFlags": [ "None" ] } ] } } } } |