[Opendnssec-user] SoftHSM and Java

Rickard Bellgrim rickard at opendnssec.org
Fri Jun 17 12:47:56 UTC 2011

On Fri, Jun 17, 2011 at 2:26 PM, Peter Hudec <peter.hudec at swan.sk> wrote:
> few months ago Ia saw some discussion about using Java PKCS11 provider with the softhsm.
> I have problem to read the keys from the softhsm in java program. Is here someone, who is able to help me.
> OS:     Linux, Ubuntu Maverick 11.04
> softhsm:        1.1.4
> I initialized the softhsm as on the page. The cmdline utils are working good, the java not.
>        http://trac.opendnssec.org/wiki/SoftHSM/Install
> See attached configuration file of Java PKCS11 provider and the Java code. I'm not able to find a problem
> even in such easy program ;( It returns empty aliases list.

It works with SoftHSM from trunk.

rickard at fou:~/javatest$ java Main
Alias: MyCert/1.2.840.113549.1.9.1=#16157269636b617264624063657274657a7a612e6e6574,cn=rickard

// Rickard

More information about the Opendnssec-user mailing list