EldoS | Feel safer!

Software components for data protection, secure storage and transfer

[Java] PDF signing : "No signing certifcate"

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#25630
Posted: 07/11/2013 03:27:43
by Vsevolod Ievgiienko (EldoS Corp.)

It will be available in a month or so.
#25632
Posted: 07/11/2013 04:12:47
by Mickaël Bénès (Standard support level)
Joined: 02/26/2013
Posts: 74

Ok thank you.
#25637
Posted: 07/11/2013 07:01:57
by Mickaël Bénès (Standard support level)
Joined: 02/26/2013
Posts: 74

While I'm talking about certificate storages, I'd like to know if PKCS#11 on Mac OS (and maybe Linux too) is now supported by SBB (Java version) ?
I've found some forum threads saying that the version 10 of SBB is supporting it, but I'm not sure that the Java edition does.

Sorry to bother you.
#25638
Posted: 07/11/2013 07:13:34
by Vsevolod Ievgiienko (EldoS Corp.)

In Java edition PKCS#11 is fully supported only on Windows via JNI. Anyway starting from the next build you may use TElJCECryptoProvider to use non-exportable secrets keys stored on PKCS#11 devices. Unfortunatelly in this case you should use Java built-in features to deal with PKCS#11.

Here is the sample code:
Code
String configName = "c:\\Program Files\\Java\\jdk1.7.0\\jre\\lib\\security\\pkcs11.cfg"; // or any other file
Provider prov = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(prov);
      
KeyStore ks = KeyStore.getInstance("PKCS11", prov);
char[] pin = "pin code".toCharArray();
ks.load(null, pin);
      
X509Certificate cert = (X509Certificate) ks.getCertificate("certificate_alias");
Key key = ks.getKey("key_alias", "pin code".toCharArray());

// convert both cert and key into TElX509Certificate and use
#25639
Posted: 07/11/2013 07:49:30
by Mickaël Bénès (Standard support level)
Joined: 02/26/2013
Posts: 74

Yeah I thought so. Will it be supported on Mac OS & Linux someday ?

Thanks for the sample code.
#25640
Posted: 07/11/2013 07:52:03
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
Will it be supported on Mac OS & Linux someday ?

Most likelly it will, but I can't give you any estimation date.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

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