![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change the Certificate's friendly name using PowerShell?
Suppose we know the Thumbprint of the certificate then we can use the below command to update or change the certificate's friendly name.
Example
$cert = Get-ChildItem ` -Path Cert:\LocalMachine\My\43E6035D120EBE9ECE8100E8F38B85A9F1C1140F
$cert.FriendlyName = "mysitecert"
The above command will update the certificate-friendly name to "mysitecert". If you don't know the thumbprint or how to retrieve it, you can use different properties like Subject name, friendly name, etc.
Example
$cert = Get-ChildItem -path ` Cert:\LocalMachine\My\` | where{$_.Subject -eq "CN=mysite.local"}
$cert.FriendlyName = "mysitecert"
Advertisements