Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

How do I create a certificate in javacard?

JavaCard Applet Development Related Questions and Answers.
sla1023
Posts: 7
Joined: Mon Feb 13, 2017 12:00 am
Points :78
Contact:

How do I create a certificate in javacard?

Post by sla1023 » Mon Jul 17, 2017 3:08 am

Forgive my short English skills first

I would like to generate a certificate from javacard

I want to check the generated certificate through openssl on another device

Please tell me how to use javacard to create a certificate available in openssl

Thank you

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: How do I create a certificate in javacard?

Post by UNKNwYSHSA » Mon Jul 17, 2017 6:15 am

1 Generate keypair in the JavaCard;
2 Output the public key;
3 Build one certificate object with the public key and other informations using middleware;
4 Store the certificate object into the JavaCard, it can be directly readed from JavaCard next time it used.
I'll find code sample for you, wait me.
sense and simplicity

sla1023
Posts: 7
Joined: Mon Feb 13, 2017 12:00 am
Points :78
Contact:

Re: How do I create a certificate in javacard?

Post by sla1023 » Mon Jul 17, 2017 11:09 am

Thank you for your reply.

I'll wait for your sample code.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: How do I create a certificate in javacard?

Post by UNKNwYSHSA » Tue Jul 18, 2017 11:31 pm

Here's no exists code for you.

See https://en.wikipedia.org/wiki/Public_key_certificate
The following image shows how to generate a certificate.
You do not have the required permissions to view the files attached to this post. Please login first.
sense and simplicity

sla1023
Posts: 7
Joined: Mon Feb 13, 2017 12:00 am
Points :78
Contact:

Re: How do I create a certificate in javacard?

Post by sla1023 » Wed Jul 19, 2017 3:14 am

Thank you for the reply

I have a one more question

The certificate has various variables, so it seems to be created as a class.

So how do you store the class data on the Java Card?

Thank you for your kindness

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: How do I create a certificate in javacard?

Post by UNKNwYSHSA » Wed Jul 19, 2017 3:50 am

You can define 2 method:

Code: Select all

// Serialize variables to a byte array.
// Then store data bytes to javacard.
byte[] toBytes();


Code: Select all

// After reading data bytes from javacard,
// UnSerialize variables from the byte array, build one Certificate class instance using these variables.
Certificate fromBytes(byte[] data);
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 52 guests

JavaCard OS : Disclaimer