Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: One-Liner(s): X509 Certificate Store Names and You

    All right, we know that we can access a remote computer's various X509Certificate stores via .NET, and 'My' corresponds to "Local Computer\Personal\Certificates". What are the other names? http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.storename.aspx That...
  • Blog Post: PowerShell for Non-N00bs: Certificates Installed on a Remote Host

    Okay, we know how to examine when a certificate file expires. How about whne a certificate that's installed on a computer? PSH> $computer = ‘remote.host' PSH> $ro = [System.Security.Cryptography.X509Certificates.OpenFlags]"ReadOnly" PSH> $cu =[System.Security.Cryptography.X509Certificates...
  • Blog Post: PowerShell for Non-N00bs: Certificate Files

    Let's say we have a certfiicate file. ("We have a certificate file." Yuck-yuck, haw-haw.) When does it expire? PSH> $certObject = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $pathToCertFile; PSH> $certObject.NotAfter Wednesday, January 21, 2011 12:49:18 PM ...
Page 1 of 1 (3 items)