Hi to all,
I have a java applet, and a smartcard which have a digital certificate (public key & private key) in it. Using the java applet and the smartcard, i can digitally sign any local file in computer, obtain the digital signature and also i can extract the certification chain.
So, i want to upload the signature, the file itself and the certification chain to the apache-php server and there i want to verify these informations.
So my questions are:
1 - How can i upload the public key (loaded in smartcard) to the server? (Is there a particular folder for its reside?)
2 - How can i decode the signature using this (uploaded) public key?
3 - How can i obtain the message digest from the original file using hash algoritm?
4 - How can i verify the certification chain is correct and the sender’s certificate is right?
As you see, i know what to do but don’t know how to do using php…
Anyone can help on this issue, please…?
Thanks ahead,
Cfh