When accessing the Windows certificate store, you can view a property called ‘Description’ in the “Details” tab. I am unable to retrieve this using a PowerShell or .NET command. Does anyone have this information, dear community?
$certs = Get-ChildItem Cert:LocalMachineMy
$certs[2] | select *
PSPath : Microsoft.PowerShell.SecurityCertificate::LocalMachineMy00000000000000
PSParentPath : Microsoft.PowerShell.SecurityCertificate::LocalMachineMy
PSChildName : 000000000000000
PSDrive : Cert
PSProvider : Microsoft.PowerShell.SecurityCertificate
PSIsContainer : False
EnhancedKeyUsageList : {Authentification du serveur (1.3.6.1.5.5.7.3.1)}
DnsNameList : {SERVER.DOMAIN.FR}
SendAsTrustedIssuer : False
EnrollmentPolicyEndPoint : Microsoft.CertificateServices.Commands.EnrollmentEndPointProperty
EnrollmentServerEndPoint : Microsoft.CertificateServices.Commands.EnrollmentEndPointProperty
PolicyId : {0000}
Archived : False
Extensions : {System.Security.Cryptography.Oid, System.Security.Cryptography.Oid, System.Security.Cryptography.Oid, System.Security.Cryptography.Oid...}
FriendlyName : FRIENDLY_NAME
IssuerName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
NotAfter : 09/01/2027 16:38:30
NotBefore : 10/01/2024 16:38:30
HasPrivateKey : True
PrivateKey : System.Security.Cryptography.RSACryptoServiceProvider
PublicKey : System.Security.Cryptography.X509Certificates.PublicKey
RawData : {48, 130, 6, 211...}
SerialNumber : 000000000000000
SubjectName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
SignatureAlgorithm : System.Security.Cryptography.Oid
Thumbprint : 000000000000000
Version : 3
Handle : 000000000000000
Issuer : CN=DOMAIN.FR, DC=DOMAIN, DC=FR
Subject : CN=SERVER.DOMAIN.FR, OU=DOMAIN, L=CITY, S=STATE, C=UK