EldoS | Feel safer!

Software components for data protection, secure storage and transfer

License Key?

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#23660
Posted: 02/22/2013 14:43:31
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

here the snd snapshoot
#23668
Posted: 02/23/2013 00:04:17
by Eugene Mayevski (EldoS Corp.)

You have repeated the description from the previous question. Yet you have not provided any information about the error. Also there are no screenshots available.


Sincerely yours
Eugene Mayevski
#23680
Posted: 02/23/2013 12:53:50
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

Here are my 2 screens.


#23681
Posted: 02/23/2013 12:54:14
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

Here my second.


#23682
Posted: 02/23/2013 13:09:41
by Eugene Mayevski (EldoS Corp.)

The screenshot only shows the error message but doesn't explain where and when it happens.

We have several "TinySigner" samples. From your previous messages I can guess that you are trying to use PDF sample (note that it's my guess - despite several questions you didn't ever tell this).

This sample uses DetectCertFileFormat function to guess the format of the certificate file (there's no way to find out the format without trying to load the file in many formats). The error happens during guessing and the error must be ignored - it's handled internally as I said above.

IF the certificate file could not be loaded, you will get another exception, thrown right in the sample's code.

Now you say that the file is not signed. What you need to do is put a breakpoint at the line which is next to the line with the call to DetectCertFileFormat() method and run the project in IDE. After the format is detected, the certificate is loaded.

For signing only PFX file format is ok (as it contains certificate's private key) and sometimes PEM would work (IF it contains the key which is not always true). CER file format won't work, though the code to load the certificate is present in the code.

After you step over those loading lines, inspect the value of PrivateKeyPresent property of the certificate. If there's no key there, signing will fail.


Sincerely yours
Eugene Mayevski
#23683
Posted: 02/23/2013 15:57:01
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

Thanky a lot, yes it is the TinySigner from PDF sample.
The CertFileFormat is a pfx file with private key.

Yes you are completely right, the PDF will be signed successfully after the 2 exceptions, which will be caughted by your lines.
SOrry for my misunderstanding.
Thanks a lot.
#23684
Posted: 02/24/2013 00:00:09
by Eugene Mayevski (EldoS Corp.)

Did you step over the code as I described? Was the private key loaded?


Sincerely yours
Eugene Mayevski
#23685
Posted: 02/24/2013 09:05:06
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

Yes, I found the Code line and the private Key was loaded Fine!
Thanks
#23686
Posted: 02/24/2013 09:45:01
by Eugene Mayevski (EldoS Corp.)

So is your problem with signing solved?


Sincerely yours
Eugene Mayevski
#23687
Posted: 02/24/2013 10:18:54
by walter Schrabmair (Basic support level)
Joined: 12/15/2012
Posts: 43

Yes it is, thanks a lot - Thanks also for the support on the weekend.
Great work!

Best regards
walter
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 3859 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!