I am working on developing an java applet to access client's private and public key from his digital certificate. Currently i am able to access both the private and public key's from the digital certificate but i have doubt as to whether i am violating the PKI standards. Hence i have following questions,
- What are the PKI standards related to access of private key from certificate through java applets?
- Can we access private key through the java applet and store it?
- Should we write the cryptography code in applets? If no, then what is the best practice which is as per PKI standards to access user's private and public key's from his digital certificate?