Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicPythonRubySQL ServerSwiftTclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.js

Classic ASP Examples

Async
Certificates
ECC
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
JSON
MHT / HTML Email
PEM
PFX/P12
Java KeyStore (JKS)
POP3
RSA Encryption
MIME
SCP
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Stream
Tar Archive
XML
XMP
Zip

More Examples...
OpenSSL
ASN.1
PRNG
Amazon S3
Bounced Email
CSV
Diffie-Hellman
DKIM / DomainKey
DSA
NTLM
QuickBooks

 

 

 

 

 

 

 

(Classic ASP) Convert DSA Public Key DER to PEM

Converts a DSA public key from DER format to PEM.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%


set dsa = Server.CreateObject("Chilkat_9_5_0.Dsa")

success = dsa.UnlockComponent("Anything for 30-day trial")
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( dsa.LastErrorText) & "</pre>"

End If

'  Load a DER public key.
success = dsa.FromPublicDerFile("dsa_pub.der")
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( dsa.LastErrorText) & "</pre>"

End If

'  Save the public key to PEM:
pemStr = dsa.ToPublicPem()
success = dsa.SaveText(pemStr,"dsa_pub.pem")
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( dsa.LastErrorText) & "</pre>"

End If

Response.Write "<pre>" & Server.HTMLEncode( "Finished!") & "</pre>"

%>
</body>
</html>

 

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