Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Certificate Provider

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 09-05-2007   #1 (permalink)
Joe G
Guest


 

Certificate Provider

I'm looking for documentation on the export method associated with an X509
Certificate object defined in the subject Powershell provider. Or for any of
the objects methods/properties. I can see the available methods/properties
by tabing after the object. string, I just can't find any of the
documentation on their parms.

My System SpecsSystem Spec
Old 09-05-2007   #2 (permalink)
Kiron
Guest


 

Re: Certificate Provider

Use Get-Member (alias 'gm')

$myCert = Get-PfxCertificate <cert's path>

# All members
$myCert | get-member | select Name, TypeName, Definition | format-list |
more

# Methods
$myCert | get-member -type Method | select Name, TypeName, Definition |
format-list | more

# Properties
$myCert | get-member -type Property | select Name, TypeName, Definition |
format-list | more

# Export method
$myCert | get-member Export | select Name, TypeName, Definition |
format-list

--
Kiron

My System SpecsSystem Spec
Old 09-05-2007   #3 (permalink)
rogwei
Guest


 

Re: Certificate Provider

On Sep 5, 9:22 am, Joe G <J...@xxxxxx> wrote:
Quote:

> I'm looking for documentation on the export method associated with an X509
> Certificate object defined in the subject Powershell provider. Or for any of
> the objects methods/properties. I can see the available methods/properties
> by tabing after the object. string, I just can't find any of the
> documentation on their parms.
http://msdn2.microsoft.com/en-us/lib...te.export.aspx

My System SpecsSystem Spec
Old 09-05-2007   #4 (permalink)
Joe G
Guest


 

Re: Certificate Provider

Would you know if there is a way to get the Enumerations available? I've
been trying to use the
[System.Security.Cryptography.X509Certificates.X509ContentType.Pfx] to no
avail.

"Kiron" wrote:
Quote:

> Use Get-Member (alias 'gm')
>
> $myCert = Get-PfxCertificate <cert's path>
>
> # All members
> $myCert | get-member | select Name, TypeName, Definition | format-list |
> more
>
> # Methods
> $myCert | get-member -type Method | select Name, TypeName, Definition |
> format-list | more
>
> # Properties
> $myCert | get-member -type Property | select Name, TypeName, Definition |
> format-list | more
>
> # Export method
> $myCert | get-member Export | select Name, TypeName, Definition |
> format-list
>
> --
> Kiron
>
>
My System SpecsSystem Spec
Old 09-05-2007   #5 (permalink)
Kiron
Guest


 

Re: Certificate Provider

"Unknown, Cert, SerializedCert, Pfx, Pkcs12, SerializedStore, Pkcs7,
Authenticode"

By assigning an empty string to the property PowerShell is kind enough to
list the enumeration values in the error message:

Try this:

[System.Security.Cryptography.X509Certificates.X509ContentType]:fx = ""

--
Kiron

My System SpecsSystem Spec
Old 09-06-2007   #6 (permalink)
Joe G
Guest


 

Re: Certificate Provider

Thanks Kiron. It's the double colon delimiter that I always seem to forget.

"Kiron" wrote:
Quote:

> "Unknown, Cert, SerializedCert, Pfx, Pkcs12, SerializedStore, Pkcs7,
> Authenticode"
>
> By assigning an empty string to the property PowerShell is kind enough to
> list the enumeration values in the error message:
>
> Try this:
>
> [System.Security.Cryptography.X509Certificates.X509ContentType]:fx = ""
>
> --
> Kiron
>
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Certificate message, but no certificate to select MikeS Vista security 1 02-16-2008 01:22 PM
WMI Provider Floridaguy Vista mail 13 12-14-2007 10:23 AM
IIS 6.0 Provider vs Cmdlet vhk PowerShell 12 10-21-2007 09:28 PM
WMI Provider Floridaguy Vista mail 0 10-12-2007 09:54 AM
which provider is best ? acejase Vista General 3 06-18-2007 12:21 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51