{"id":151,"date":"2017-07-10T14:21:01","date_gmt":"2017-07-10T14:21:01","guid":{"rendered":"http:\/\/www.edrockwell.com\/blog\/?p=151"},"modified":"2017-09-01T02:37:38","modified_gmt":"2017-09-01T02:37:38","slug":"how-to-change-the-friendly-name-on-a-certificate-windows","status":"publish","type":"post","link":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/","title":{"rendered":"How to change the Friendly Name on a certificate -Windows"},"content":{"rendered":"<p>I ran into the situation where someone created and applied a certificate in IIS and the friendlyName was wrong. During automatic deployments of the software, they would call into the cert store and select the certificate to use for their 443 bindings based on the friendly name. The certificate was named wrong and wouldn&#8217;t get applied during deployment or it would apply the wrong one.<\/p>\n<p>Here is how to fix this using PowerShell without re-issuing the certificate.<\/p>\n<p>Open up PowerShell with administrative rights and change your location to the certificate store.<\/p>\n<p>We will change the certificate with the thumbprint named wrong_internal_wildcard to right_internal_wildcard<\/p>\n<pre class=\"lang:ps decode:true \">PS C:\\Users\\ed&gt; set-location cert:\r\nPS Cert:\\&gt; cd .\\\\localmachine\\My\r\nPS Cert:\\localmachine\\My&gt; Get-ChildItem\r\n\r\n\r\n   PSParentPath: Microsoft.PowerShell.Security\\Certificate::localmachine\\My\r\n\r\nThumbprint                                Subject\r\n----------                                -------\r\nEC1D0A14FA9BAD91DA24B9F87ECBCDB63E9D6F6A\r\nE09D1799FC7F5791797EC39ED75A90345D1EE080  CN=IssuingCA, DC=domain, DC=com\r\nA0102DDEFE92D57E8136B150F1DAEC4DA628B2AD  CN=AnotherCA, DC=domain, DC=com\r\n8F5A004D9F831A9EA18374C3367796F6075AA578  CN=*.domain.com, O=company, L=city, S=state, C=US\r\n\r\nPS Cert:\\localmachine\\My&gt; $cert = Get-ChildItem 8F5A004D9F831A9EA18374C3367796F6075AA578\r\nPS Cert:\\localmachine\\My&gt; $cert.FriendlyName\r\nwrong_internal_wildcard\r\n\r\nPS Cert:\\localmachine\\My&gt; $cert.FriendlyName = \"right_internal_wildcard\"\r\nPS Cert:\\localmachine\\My&gt; $cert.FriendlyName\r\nright_internal_wildcard\r\n\r\n<\/pre>\n<p>In the above example, I have done the following:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Opened Powershell<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Set-Location to the certificate store by typing Set-Location cert:<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Listed out the certs by typing Get-ChildItem<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Located the cert I wanted to change the friendly name of<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Put that cert in a variable so I could view it&#8217;s properties<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Verified that the cert is the right one by typing $cert.friendlyname<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Then changed the friendlyname by typing $cert.FriendlyName = &#8220;right_internal_wildcard&#8221;<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>lastly, I verifed the cert friendlyname by typing $cert.FriendlyName<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I ran into the situation where someone created and applied a certificate in IIS and the friendlyName was wrong. During automatic deployments of the software, they would call into the cert store and select the certificate to use for their 443 bindings based on the friendly name. The certificate was named wrong and wouldn&#8217;t get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":198,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,16],"tags":[65,66,21],"class_list":["post-151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-certificates","category-powershell","tag-certificate","tag-friendlyname","tag-powershell-2"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]\" \/>\n<meta property=\"og:description\" content=\"I ran into the situation where someone created and applied a certificate in IIS and the friendlyName was wrong. During automatic deployments of the software, they would call into the cert store and select the certificate to use for their 443 bindings based on the friendly name. The certificate was named wrong and wouldn&#8217;t get [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"System Admin [RESOLVED]\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-10T14:21:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-01T02:37:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ed Rockwell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:site\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ed Rockwell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\"},\"author\":{\"name\":\"Ed Rockwell\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"headline\":\"How to change the Friendly Name on a certificate -Windows\",\"datePublished\":\"2017-07-10T14:21:01+00:00\",\"dateModified\":\"2017-09-01T02:37:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\"},\"wordCount\":208,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg\",\"keywords\":[\"certificate\",\"friendlyname\",\"Powershell\"],\"articleSection\":[\"Certificates\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\",\"name\":\"How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg\",\"datePublished\":\"2017-07-10T14:21:01+00:00\",\"dateModified\":\"2017-09-01T02:37:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg\",\"contentUrl\":\"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg\",\"width\":700,\"height\":394},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.edrockwell.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change the Friendly Name on a certificate -Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"caption\":\"Ed Rockwell\"},\"sameAs\":[\"http:\/\/www.therockwells.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/","og_locale":"en_US","og_type":"article","og_title":"How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]","og_description":"I ran into the situation where someone created and applied a certificate in IIS and the friendlyName was wrong. During automatic deployments of the software, they would call into the cert store and select the certificate to use for their 443 bindings based on the friendly name. The certificate was named wrong and wouldn&#8217;t get [&hellip;]","og_url":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/","og_site_name":"System Admin [RESOLVED]","article_published_time":"2017-07-10T14:21:01+00:00","article_modified_time":"2017-09-01T02:37:38+00:00","og_image":[{"width":700,"height":394,"url":"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg","type":"image\/jpeg"}],"author":"Ed Rockwell","twitter_card":"summary_large_image","twitter_creator":"@EddieRock","twitter_site":"@EddieRock","twitter_misc":{"Written by":"Ed Rockwell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#article","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/"},"author":{"name":"Ed Rockwell","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"headline":"How to change the Friendly Name on a certificate -Windows","datePublished":"2017-07-10T14:21:01+00:00","dateModified":"2017-09-01T02:37:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/"},"wordCount":208,"commentCount":0,"image":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg","keywords":["certificate","friendlyname","Powershell"],"articleSection":["Certificates","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/","url":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/","name":"How to change the Friendly Name on a certificate -Windows - System Admin [RESOLVED]","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage"},"image":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg","datePublished":"2017-07-10T14:21:01+00:00","dateModified":"2017-09-01T02:37:38+00:00","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#primaryimage","url":"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg","contentUrl":"https:\/\/www.edrockwell.com\/blog\/wp-content\/uploads\/2017\/07\/CertFriendlyName.jpg","width":700,"height":394},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-change-the-friendly-name-on-a-certificate-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to change the Friendly Name on a certificate -Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.edrockwell.com\/blog\/#website","url":"https:\/\/www.edrockwell.com\/blog\/","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7","name":"Ed Rockwell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","caption":"Ed Rockwell"},"sameAs":["http:\/\/www.therockwells.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":14,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions\/199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media\/198"}],"wp:attachment":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}