Click here to Skip to main content
13,094,732 members (96,647 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I'm building an SSL client/server application (in separate projects), and i'm trying to send a digital certificate from the client to the server using SendString() method, but the problem is that the certificate i'm trying to send is of type "CkCert* " (since i'm using the chilkat software component), and the sendString() method only takes a "String" type. And at the other end (server) the recieveString() method only takes a "String" type also.

So, kindly how can i convert the certificate from a "CkCert* " typt into a "const char *" type?

Posted 21-May-13 1:36am
Mohibur Rashid 21-May-13 23:34pm
did you try this function, exportCertPem ?

also follow the link

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

technically,there is no way to send CkCert derictly across sockets.What you can do is to mashal it if possible and so unmashal at the other side. or send the memory buffer and size, then cast to CkCert when fetch the exact buffer size.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100