EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Wrong ODT signature

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#31217
Posted: 10/31/2014 03:41:01
by Martin Icha (Premium support level)
Joined: 10/31/2014
Posts: 9

I have just downloaded your Secure Black Box SDK for Mac/iOS. I tried your sample app called iOSOfficeProcessor and it produces documents that can not be opened in LibreOffice, after it has been signed. Neither my app can produce a valid signed odt file with the code from your sample app :-( No exception is thrown but the file could not be opened with LibreOffice (General Error.
General input/output error.).
Code snippet:

try
{
OfficeDocument->Open([self.dataPath UTF8String]);

Certificate = new SecureBlackbox::TElX509Certificate(NULL);
Certificate->LoadFromBufferPFX((void*)[pkcs12 bytes], [pkcs12 length], TEMP_PASSWORD);
.
.
.
else if (OfficeDocument->get_OpenDocument() != NULL)
{
SecureBlackbox::TElOpenOfficeSignatureHandler *ODFSigHandler = new SecureBlackbox::TElOpenOfficeSignatureHandler(NULL);
OfficeDocument->AddSignature(ODFSigHandler, true);

ODFSigHandler->AddDocument();
ODFSigHandler->Sign(Certificate);
}
OfficeDocument->Flush();
OfficeDocument->Close();
}
catch(...)
{

}
#31219
Posted: 10/31/2014 03:45:31
by Eugene Mayevski (EldoS Corp.)

Let's continue in HelpDesk ( https://www.eldos.com/helpdesk/ ) please. I have created a new support ticket based on your above message. You will see your (and only your) support tickets by following this URL. You will also get e-mail notifications about updates related to your support ticket.


Sincerely yours
Eugene Mayevski
#31222
Posted: 10/31/2014 03:55:19
by Martin Icha (Premium support level)
Joined: 10/31/2014
Posts: 9

Ok, thank you very much for your help.

Reply

Statistics

Topic viewed 297 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!