http://www.motobit.com/util/base64-decoder-encoder.asp
Well, if it is necessary to get the private part of a key (Well, actually this violates the idea of a smart card. It should be kept there and never leave it. Okay, if you want to have a backup ...) then you should at least try to store it secretly. Never enter the private key at a public web page! The security is not more given!
But why do you want to generate a key at the card? If you need it outside, why not use openssl? And import it on the card?
Bye, Karsten
don’t forget the program that receives the key generated by your javacard probably has more requirements, than merely base64 encoding of the binary private key stream. Look into openssl’s creation of .p12 format files, given binary muscle private key inputs. This .p12 file collects various key and cert files, and stores them as a PKCS#12 stream. If you are not used to BER/TLV stream formatters, its weird. But, Windows base services has a decoder, distributed globally since IE4.
As a file transfer format , p12 is excellent. As a suitable technique for “cloning keys”: between secure cryptomodules, you need to apply much more care. A file format does not equal a secure process for cloning key.
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of [EMAIL PROTECTED]
*Sent:* Monday, April 18, 2005 9:35 PM
*To:* [email protected]
*Subject:* [Muscle] conversion of private key format
hi all,
Now i can able to export private key through muscletool, for that i change muscletool.c..
The following modifications are done in genkeys method:
keyParams.algoType = MSC_GEN_ALG_RSA_CRT;
keyParams.keySize = 1024;
keyParams.privateKeyACL.readPermission = MSC_AUT_ALL; <---------
keyParams.privateKeyACL.writePermission = MSC_AUT_ALL; <---------
keyParams.privateKeyACL.usePermission = MSC_AUT_ALL; <---------
<--------- here i changed private key permission.
and in export key method i did the follwoing changes.
rv = MSCExportKey(pConnection, keyNumber, keyData, &keySize, 0, 0);
now i want to know, whether there is any program which convert my private key format to base64(standard format).
Please kindly help me so that i can go futher.
Thanks in advance
B.Jyostna
-------------------------------------------- Email in Indian languages. This mail has been sent to you from http://webmail.idrbt.ac.in <
DISCLAIMER:
This message is intended solely for the individual or entity to which it is addressed.This communication may contain information that is proprietary, privileged or confidential and otherwise legally exempt from disclosure. If you are not the named addressee,or have been inadvertently referenced in the address line, you are not authorized to read, print, retain, copy or disseminate this message or any part of it.If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.Visit us at http://www.idrbt.ac.in./BODY>
------------------------------------------------------------------------
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
