Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-09-15
5
Medium Priority
?
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

688 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