Solved

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

Posted on 2010-09-15
5
452 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

705 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

20 Experts available now in Live!

Get 1:1 Help Now