Click here to Skip to main content
11,811,971 members (72,196 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++

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 at 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
0 KrunalRohit 319
1 Abhinav S 215
2 Palash Mondal_ 210
3 CHill60 180
4 CPallini 135
0 OriginalGriff 3,893
1 KrunalRohit 2,441
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2015
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