Create Hash value using Private Key & Public Key
843810Apr 29 2002 — edited Oct 7 2002Hi Java Gurus,
I need to build a simple Application.
Because i don't have a certificate I want to use one of the certificate available on the Internet Explorer .
I have exported a certificate say Thawte Certificate to C: drive
I want to sign a string using the Private key of this certificate and generate a hash value h1.
The application then takes the same string and generates a hash value h2 with the Public Key of the certificate
If H1=H2
then authentication succeds else fail
How to do this .How do i get the Private key of the certificate and sign .
I don't want to create key using Keygenerator using DES Algoirthm..
Sample code would be very helpful
Thankyou in advance