Windows Vista Forums

How to get "Intended Purposes" filed of a certificate?

  1. #1


    rmq Guest

    How to get "Intended Purposes" filed of a certificate?

    By MMC->Certificates, I found every certificate has filed named
    "Intended Purposes", whose value could be "Client Authentication",
    etc. But in Powershell, I did not find this filed. Can someone help ?

    By the way, my PS version is V2(CTP2)

    Thanks a lot.

      My System SpecsSystem Spec

  2. #2


    Joel Bennett Guest

    Re: How to get "Intended Purposes" filed of a certificate?

    From anywhere in the cert: psdrive ....


    ls | select -expand Extensions |
    select KeyUsages,EnhancedKeyUsages

    --or--

    ls | Format-List FriendlyName, Subject, @{l="Usages";e={
    foreach($key in $_.Extensions){
    if($key.KeyUsages){$key.KeyUsages}
    if($key.EnhancedKeyUsages){$key.EnhancedKeyUsages}
    }
    }}


    For some reason, this seems to miss the data on some keys where it still
    shows up on the certificate property dialog ... not sure what to do
    about that. Maybe someone else has a better clue
    --
    Joel

    rmq wrote:

    > By MMC->Certificates, I found every certificate has filed named
    > "Intended Purposes", whose value could be "Client Authentication",
    > etc. But in Powershell, I did not find this filed. Can someone help ?
    >
    > By the way, my PS version is V2(CTP2)
    >
    > Thanks a lot.

      My System SpecsSystem Spec

  3. #3


    rmq Guest

    Re: How to get "Intended Purposes" filed of a certificate?

    Thanks a lot.

    On Feb 25, 11:04*am, Joel Bennett <Jay...@xxxxxx> wrote:

    > *From anywhere in the cert: psdrive ....
    >
    > ls | select -expand Extensions |
    > * * * select KeyUsages,EnhancedKeyUsages
    >
    > --or--
    >
    > ls | Format-List FriendlyName, Subject, @{l="Usages";e={
    > * *foreach($key in $_.Extensions){
    > * * *if($key.KeyUsages){$key.KeyUsages}
    > * * *if($key.EnhancedKeyUsages){$key.EnhancedKeyUsages}
    > * *}
    >
    > }}
    >
    > For some reason, this seems to miss the data on some keys where it still
    > shows up on the certificate property dialog ... not sure what to do
    > about that. Maybe someone else has a better clue
    > --
    > Joel
    >
    > rmq wrote:

    > > By MMC->Certificates, I found every certificate has filed named
    > > "Intended Purposes", whose value could be "Client Authentication",
    > > etc. But in Powershell, I did not find this filed. Can someone help ?
    >

    > > By the way, my PS version is V2(CTP2)
    >

    > > Thanks a lot.

      My System SpecsSystem Spec

How to get "Intended Purposes" filed of a certificate?

Similar Threads
Thread Forum
"Access Denied" on Encrypted Files although Certificate Still Exists and is Valid
Hi all, I have an encrypted folder on my Vista-SP2-PC. From one day to the next, the files in there could not be opened anymore; I am now getting...
Vista security
Certificate authority moving from "Third-Party Root CertificationAuthorities" store to "Trusted Root Certification Authorities" storeautomatically
Hi, if I have the wrong group please refer me to the correct one. I noticed while browsing using IE8 on a Windows Server 2003 that before...
Server General
Error Message: "Security Certificate Could Not Be Verified"
Suddenly, last night, every time a start Windows Mail, I get the error message "The server you are connected to is using a security certificate...
Vista mail
"Request New Certificate" is missed from Certificates snap-in
Hello, I use Windows Vista Business OEM (genuine). Windows Vista Help has a statement, that using Certificates snap-in in MMC one can right-click...
Vista security
standard user gets empty "choose a digital certificate"
I use a card reader with a private key for logging on o a secure site. If I test with admin privileges everything goes OK, the cert. can be choosen...
Vista security
One of the "certificate services client" tasks doesn't start.
Hello everyone, There is a program in Vista called "certificate services client", which has three tasks in the "task scheduler". One of those...
Vista account administration
Many "Certificate Services Client" error messages (task doesn't st
Hello everyone, I'm getting hundreds of error messages ¹ about a task called the "Certificate Services Client" ² . Do people in our...
Vista security