{"id":186,"date":"2022-02-25T14:21:29","date_gmt":"2022-02-25T01:21:29","guid":{"rendered":"https:\/\/stevenhodson.com\/?p=164"},"modified":"2024-06-14T03:29:50","modified_gmt":"2024-06-14T02:29:50","slug":"client-certificate-renewal-for-the-azure-ad-passthrough-authentication-agent","status":"publish","type":"post","link":"https:\/\/www.stevenhodson.com\/?p=186","title":{"rendered":"Client Certificate Renewal for the Azure AD Passthrough Authentication Agent"},"content":{"rendered":"\n<p>We recently came across an issue where the client certificate for the Azure AD Passthrough Authentication Agent wasn&#8217;t being renewed automatically. I understand that it should be renewed about 30 days out, however this hadn&#8217;t happened and we were fast approaching expiry.<\/p>\n\n\n\n<p>A simple way to renew the certificate manually is to jump onto the server where the passthrough agent is installed and run the following Powershell commands to re-register the agent with Azure AD. The agent status in Azure AD will momentarily change to Inactive, but will then become Active again. You&#8217;ll need to run the .ps1 script from the directory where the Passthrough Agent is installed, typically this is under C:\\Program Files\\.<\/p>\n\n\n\n<p>You can probably achieve the same result by uninstalling and reinstalling the agent also, but I haven&#8217;t tried that method.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">PS C:\\Program Files\\Microsoft Azure AD Connect Authentication Agent&gt;\n\n$User = '&lt;Insert Global Administrator Username Here&gt;'\n\n$PlainPassword = '&lt;Insert Global Administrator Password Here&gt;'\n\n$SecurePassword = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force\n\n$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $SecurePassword\n\n.\\RegisterConnector.ps1 -modulePath \"C:\\Program Files\\Microsoft Azure AD Connect Authentication Agent\\Modules\\\" -moduleName \"PassthroughAuthPSModule\" -Authenticationmode Credentials -Usercredentials $cred -Feature PassthroughAuthentication<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We recently came across an issue where the client certificate for the Azure AD Passthrough Authentication Agent wasn&#8217;t being renewed automatically. I understand that it should be renewed about 30 days out, however this hadn&#8217;t happened and we were fast approaching expiry. A simple way to renew the certificate manually is to jump onto the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,21],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-azure"],"_links":{"self":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":1,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}