简体   繁体   中英

implement digital signature etoken in web application

I want something like this-

  1. The user will access form on my webpage (aspx page) and fill the form. (this is a small form with four textboxes for entry).
  2. User will plugin his digital signature etoken in his PC (client machine).
  3. My java applet will sign the data entered (can produce hash of that data if possible) on form using private key of the client's digital signature which is present in client's etoken.
  4. And send the signed data to the server

I am new in java.. kindly share some code if possible... (at server side asp.net application is running which will verify the signature and collect the data if signature is verified)(public key is stored in database for signature verification)

Plz provide me some solution...

According to this Question : Real e-goverment solution to solve this: 1) Install a local Java application on the user's PC. The application listens on a port as, for example 5678 2) In your page, javascript detects whether there is support for applets 3) If there is no support, connects to the application in the form http://127.0.01:5678/sign and sends the data to sign. 4) The application is local and has no trouble using the operating system keystore, which includes drivers PKCS # 11. Make digital signature and prepares the result 5) page javascript periodically query the result and retrieves it when ready. I'm currently developing a solution like. Can inform briefly after implementing successfully. See this comment also.

Access to eToken may also be provided through Browser Extensions for modern browsers, since modern browsers like Chrome, Edge no more supports Java Applets. Different Tasks of Signing Digitally at Client's browser end may be achieved as discussed in below SO Answers:

Client Registration and Authentication

Signing Content or Form or XML

PDF Signing As per your requirement of Server side running .NET application, this answer has a link to sample C# working project download.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM