Solved

How to generate public and private keys in PKCS # 11 with JAVA

Posted on 2010-09-15
5
455 Views
Last Modified: 2013-12-29
Dear, good afternoon!
I need to create a simple class in Java (with a main) generating public and private keys and the record in the database using PKSC # 11.
I've read:
JavaTM PKCS # 11 Reference Guide
Java TM Cryptography Architecture
JavaTM Cryptography Extension (JCE)
however, still do not know how to do it actually. Do you have some kind of practical guide, or specific mentoring from such implementation?
What I really need to give beginning? Only with the JDK and JCE installed is enough, or should I install the SDK?
Tanks!
0
Comment
Question by:br_ms
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 33689462
You need something like the following. What are you going to do after you've got the key pair?

http://www.exampledepot.com/egs/java.security/GenKeyPair.html
0
 

Author Comment

by:br_ms
ID: 33694955
So I need to generate a keystore.
Well, the code you showed me I already know to generate, in fact I need to generate these keys using PKCS # 11. I need to use the OpenSC, but do not know how to do it. It seems that I have to download a configuration file, an implementation ... I'm not sure.
0
 

Author Closing Comment

by:br_ms
ID: 33824126
Thx!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now