login about faq

Hello. I am having trouble with using the .snk files with this example code (http://www.example-code.com/vcpp/rsa_snk.asp). I've generated a .snk file called adamKeyPair using the strong name tool. The program is compiling fine, however it does not seem to be reading the snk file and getting the keys. Below is the code fragment I am using to test if it is reading it. The xmlKey is showing blank when the program runs. I have the .snk file in the project folder along with the studio solution. Do I have the file in the wrong place, or is there more I should be doing with the snk file beforehand?

const char * xmlKey; xmlKey = rsa.snkToXml("adamKeyPair.snk"); std::cout << "Adam's Keys: " << xmlKey << std::endl;

asked Mar 13 '13 at 11:07

Druss's gravatar image


After calling snkToXml, examine the contents of the rsa.lastErrorText() to get information about what happened. This is the standard way of getting information about what transpired within the last method called on a Chilkat object instance.


answered Mar 15 '13 at 09:07

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Mar 13 '13 at 11:07

Seen: 1,899 times

Last updated: Mar 15 '13 at 09:07

powered by OSQA