login about faq

Hi,,

I've used your "Extract Public/Private Keys and Certs from PFX into String Variables" function, to convert a digital certificate into a string to be passed in an SSL client/server application as follows:

CkString CLIENT::Convert_Cert_into_String(CkCert * certificate) { bool success; printf("%sn",certificate->subjectDN()); printf("---n");

CkString encodedCert;
encodedCert = certificate->getEncoded();
return encodedCert;

} And now I'm wondering, Is it possible to convert the CkString back into a CkCert* ? and how? Regards.

regards.

asked May 22 '13 at 08:42

rania's gravatar image

rania
45182228


Look at the reference documentation. There are methods for exporting and loading from string formats. (http://www.chilkatsoft.com/refdoc/vcCkCertRef.html)

link

answered May 22 '13 at 10:47

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26

Asked: May 22 '13 at 08:42

Seen: 767 times

Last updated: May 22 '13 at 10:47

powered by OSQA