


{"id":391617,"date":"2024-10-28T15:56:10","date_gmt":"2024-10-28T15:56:10","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-renew-the-self-signed-certificate-for-the-ad-connector-for-ansys-gateway\/"},"modified":"2024-10-29T05:56:37","modified_gmt":"2024-10-29T05:56:37","slug":"how-to-renew-the-self-signed-certificate-for-the-ad-connector-for-ansys-gateway","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-renew-the-self-signed-certificate-for-the-ad-connector-for-ansys-gateway\/","title":{"rendered":"How to renew the Self-Signed certificate for the AD Connector for Ansys Gateway"},"content":{"rendered":"<p>&lt;p&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;In case you use a self-signed certificate for the Gateway Connector, you may experience the certificate to expire after 1 year.&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;This will cause the Gateway agent to no more be able to interface with the Active Directory and will prevent operations on Ansys Gateway powered by AWS.&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;In order o renew the Self-Signed certificate, you need to follow the following steps:&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;Stop and delete existing Ansys.Gateway.AdConnector service&lt;\/span&gt;<\/li>\n<\/ol>\n<ol start=\"1\">\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;To delete it run this in Windows command prompt &ldquo;sc delete Ansys.Gateway.AdConnector&rdquo;&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<ol start=\"2\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;Run these 2 commands in PowerShell with Admin permissions&lt;\/span&gt;<\/li>\n<\/ol>\n<ol start=\"2\">\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;New-SelfSignedCertificate -DnsName $myDomain -CertStoreLocation &#8220;cert:\\LocalMachine\\My&#8221;&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<ol start=\"2\">\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;$myDomain should be the actual domain used for the OU which you created&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<ol start=\"1\">\n<ol start=\"1\">\n<ol start=\"2\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;Move-Item -Path &#8220;cert:\\LocalMachine\\My\\{thumbprint}&#8221; -Destination &#8220;cert:\\LocalMachine\\Root&#8221;&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<ol start=\"2\">\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;{thumbprint} should be the actual thumbprint returned from the first PS command&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<ol start=\"3\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;Run the install.ps1 command with the new thumbprint to reinstall the service.&lt;\/span&gt;<\/li>\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;In a <strong>PowerShell <\/strong>window, <strong>cd <\/strong>to the <strong>ACSAdmin <\/strong>folder and run the <strong>install.ps1 <\/strong>command with the followingarguments:&lt;\/span&gt;<\/li>\n<ol start=\"1\">&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;-username &#8220;username&#8221;&lt;\/span&gt;<\/strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;: username for the account to be used to join users and machines to theOrganizational Unit.&lt;\/span&gt;&lt;\/span&gt;<\/li>\n<p>&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;-password &#8220;password&#8221;&lt;\/span&gt;<\/strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;: password for the domain join user account.&lt;\/span&gt;&lt;\/span&gt;<\/li>\n<p>&lt;li class=&#8221;MsoNormal&#8221; style=&#8221;font-size: 14pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;-thumbprint &#8220;thumbprint&#8221;&lt;\/span&gt;<\/strong>&lt;span style=&#8221;font-family: Calibri, sans-serif;&#8221;&gt;: Specify the thumbprint value that you obtained in the previous step.&lt;br&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&#8221;font-size: 14pt; font-family: Calibri, sans-serif;&#8221;&gt;For example:<strong>.\\install.ps1 -username &#8220;<a href=\"mailto:domainjoin@company.com\">domainjoin@company.com<\/a>&#8221; -password &#8220;agw123&#8243; -thumbprint&#8221;b6f70dc3d000791ece744ec67c34eb92cbbe97e0&#8221;<\/strong>&lt;\/span&gt;<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n","protected":false},"template":"","class_list":["post-391617","topic","type-topic","status-answered","hentry","topic-tag-certificate-1","topic-tag-gateway"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["45512"],"_bbp_author_ip":["2a01:e0a:5c5:3a80:286f:ad79:12cd:e27e"],"_btv_view_count":["261"],"_bbp_topic_status":["answered"],"_bbp_likes_count":["1"],"_bbp_status":["publish"],"_bbp_topic_id":["391617"],"_bbp_forum_id":["233598"],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["391617"],"_bbp_last_active_time":["2024-10-28 15:56:10"]},"test":"fpoussin"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391617\/revisions"}],"predecessor-version":[{"id":391677,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391617\/revisions\/391677"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=391617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}