PowerShell Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

PowerShell Examples

Bounced Email
Digital Certificates
Digital Signatures
DSA
Email Object
Encryption
FTP
HTML Conversion
HTTP
IMAP
MHT / HTML Email
POP3
RSA
MIME
SMTP
Socket
SOCKS Proxy
Spider
SSH Key
SSH
SFTP
Tar
Upload
XML
XMP
Zip


More Examples...
Amazon S3
NTLM
RSS
Atom
PPMD
Deflate
Bzip2
LZW
Diffie-Hellman
Bz2
Character Encoding
CSV

 

 

 

 

 

 

 

 

(PowerShell) Load DER encoded X.509 Certificate (.cer, .crt)

Loads a digital certificate from a binary DER encoded X.509 Certificate (.cer, .crt) and fetches information about the cert.

Download: Chilkat .NET Assemblies

[Reflection.Assembly]::LoadFile("C:\myAssemblies\ChilkatDotNet2.dll")

$cert = New-Object Chilkat.Cert

#  LoadFromFile will load virtually any certificate format file.
#  It will auto-recognize the format and load appropiately.
$success = $cert.LoadFromFile("/Users/chilkat/testData/cer/chilkat_ssl.cer")
if ($success -ne $true) {
    $($cert.LastErrorText)
    exit
}

#  DN = "Distinguished Name"
$("SubjectDN:" + $cert.SubjectDN)

$("Common Name:" + $cert.SubjectCN)
$("Issuer Common Name:" + $cert.IssuerCN)

$("Serial Number:" + $cert.SerialNumber)

© 2000-2013 Chilkat Software, Inc. All Rights Reserved.