EldoS | Feel safer!

Software components for data protection, secure storage and transfer

signing Multiple PDF docs

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#27388
Posted: 11/26/2013 07:38:57
by Bilal SEZER (Basic support level)
Joined: 11/26/2013
Posts: 15

Hi,

I'd like to sign multiple PDF docs with only one password session. How can I do that?

sincerely,
Bilal.
#27389
Posted: 11/26/2013 07:43:52
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

You can ask a password from a user once and then reuse it in your code. Please refer to \EldoS\SecureBlackbox.<edition>\Samples\<language>\PDFBlackbox\Encryptor sample for details of implementation.
#27390
Posted: 11/26/2013 08:22:38
by Bilal SEZER (Basic support level)
Joined: 11/26/2013
Posts: 15

I am trying to sign a PDF doc via System Certificate Storage so I couldn't see any password input options for that kind of Certificate.
#27392
Posted: 11/26/2013 08:54:32
by Vsevolod Ievgiienko (Team)

Not sure I understand your problem. Could you describe it in more details. You don't need any passwords for certificates from system storages.
#27393
Posted: 11/26/2013 09:01:48
by Bilal SEZER (Basic support level)
Joined: 11/26/2013
Posts: 15

I have a digital signature, when I want to sign multiple PDF docs I have to enter my digital signature's password every time, I want to enter my password just first time.
#27405
Posted: 11/26/2013 13:23:12
by Ken Ivanov (Team)

Bilal,

The exact procedure (and its possibility at all) depends on where exactly the private key is physically stored (in a Windows system store or on a hardware module). If the private key is managed by Windows, in most cases you can re-use the same TElMemoryCertStorage instance for signing all documents. You can pass the password programmatically via TElX509Certificate.KeyMaterial.SignaturePIN and TElX509Certificate.KeyMaterial.KeyExchangePIN properties.
#27414
Posted: 11/27/2013 02:37:45
by Bilal SEZER (Basic support level)
Joined: 11/26/2013
Posts: 15

Is there any sample about that component (TElX509Certificate) and passing signature pin automatically.

P.S : Signature pin is stored in hardware.
#27415
Posted: 11/27/2013 02:44:56
by Eugene Mayevski (Team)

Just put the pin to TElX509Certificate.KeyMaterial.SignaturePIN property. Note that this works for some cryptoproviders but can do nothing for others - not all cryptoproviders support the feature.

It can be handier to use PKCS#11 API offered by SecureBlackbox. There you pass the PIN when you login to the device.


Sincerely yours
Eugene Mayevski
#27417
Posted: 11/27/2013 03:00:09
by Bilal SEZER (Basic support level)
Joined: 11/26/2013
Posts: 15

TElX509Certificate.KeyMaterial looks nil do I have to set any property of TElX509Certificate before set SignaturePin property.

I'll have a look to PKCS#11 API, is there any sample?
#27423
Posted: 11/27/2013 03:07:59
by Ken Ivanov (Team)

Bilal,

How exactly did you obtain the TElX509Certificate object? Did you use a TElWinCertStorage object?
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 2089 times

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




|

Back to top

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

Got it!