Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Delphi ActiveXDelphi DLLVisual FoxProJavaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerShellPythonRubySQL ServerUnicode CUnicode C++Visual Basic 6.0VB.NETVBScript

C Examples

Certificates
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
MHT / HTML Email
POP3
RSA Encryption
MIME
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Tar Archive
XML
XMP
Zip

More Examples...
Amazon S3
Bounced Email
CSV
Diffie-Hellman
NTLM

 

 

 

 

 

 

 

(C) Convert DSA Public Key DER to PEM

Converts a DSA public key from DER format to PEM.

Downloads:

MS Windows Visual C/C++ Libraries
Linux/CentOS C/C++ Libraries
MAC OS X C/C++ Libraries
Solaris C/C++ Libraries
C++ Builder Libraries
FreeBSD C++ Libraries
HP-UX C++ Libraries
BlackBerry QNX C++ Libraries
#include <C_CkDsa.h>

void ChilkatSample(void)
    {
    BOOL success;
    HCkDsa dsa;
    const char * pemStr;



    dsa = CkDsa_Create();

    success = CkDsa_UnlockComponent(dsa,"Anything for 30-day trial");
    if (success != TRUE) {
        printf("%s\n",CkDsa_lastErrorText(dsa));
        return;
    }

    //  Load a DER public key.
    success = CkDsa_FromPublicDerFile(dsa,"dsa_pub.der");
    if (success != TRUE) {
        printf("%s\n",CkDsa_lastErrorText(dsa));
        return;
    }

    //  Save the public key to PEM:
    pemStr = CkDsa_toPublicPem(dsa);
    success = CkDsa_SaveText(dsa,pemStr,"dsa_pub.pem");
    if (success != TRUE) {
        printf("%s\n",CkDsa_lastErrorText(dsa));
        return;
    }

    printf("Finished!\n");

    CkDsa_Dispose(dsa);

    }

 

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