VB.NET Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB.NET Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML to XML
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Byte Array
VB.NET FTPS
System.IO

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

Convert Certificate from PEM to DER

Convert a PEM formatted certificate file (.cer, .crt, .pem) to DER format (.cer, .der). The Chilkat certificate class/object is a freeware component that is included in many of the Chilkat downloads.

Download Chilkat .NET for 2.0 Framework

Download Chilkat .NET for 1.0 / 1.1 Framework

Dim cert As New Chilkat.Cert()

Dim success As Boolean

'  LoadFromFile will load either PEM and DER formatted files.
'  It automatically recognizes the file format based on the
'  file contents.
success = cert.LoadFromFile("chilkat.crt")
If (success <> true) Then
    MsgBox(cert.LastErrorText)
    Exit Sub
End If


MsgBox(cert.SubjectDN)

success = cert.ExportCertDerFile("chilkat.der")
If (success <> true) Then
    MsgBox(cert.LastErrorText)
    Exit Sub
End If


MsgBox("success!")

 

Need a specific example? Send a request to support@chilkatsoft.com

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

Mail Component · XML Parser