To Ben and Tommy Grändefors
The actual thing I would like to achieve is that:
1) I've got a HTML form with some sensitive information (such as
address and bank a/c id etc)
2) now I would like the client to use his/her eCert to signed the form
(or the data from the form) and then submit to the server
3) before processing, the server should check if the form (or the data)
are correctly signed (using the client's public key to verify etc)
4) if ok, continue to process, if not return some error code etc
>From Tommy's reply, most likely I would need a client side program /
applet to do the signing, so applet may be a good choice. So I will
drill into these topics if possible
Thx for all your replies!
>From Jason (Kusanagihk)
Ben_ - 15 Sep 2005 15:34 GMT
OK, it's clearer to me what you want to do.
Strictly speaking, if you want to sign the data (and, say, post a field with
the signature in the request along with the data), then you would need a
client-side program (and an applet can do this).
But I would solve this a bit differently if your requirements permits. By
using an SSL connection and enforcing the use of Client Certificate, there
will be a ServletRequest attribute with the Certificate.
So, there is no need for the user to "sign", because the SSL connection will
require that the user presents a valid Certificate, and your application can
then inspect all the details of the certificate if needed. You'll require
SSL anyway to protect the "sensitive information", so if the browsers you
have to support support SSL authentication themselves you have very few
development.
My 2ç...
kusanagihk@gmail.com - 16 Sep 2005 02:52 GMT
To Ben
Is SSL connection refers to the connection provided by the webserver
(like Netscape or WebLogic etc); or is it also a programmable
connection from Java APIs??
On the point, SSL connection will require that the user presents a
valid Certificate; does it mean that user's certs are requested
automatically? If so, then should I need to store these user certs in a
place or how can I obtain their certs' information??
Thanks
>From Jason (Kusanagihk)
> OK, it's clearer to me what you want to do.
>
[quoted text clipped - 14 lines]
>
> My 2ç...
Ben_ - 19 Sep 2005 16:15 GMT
> Is SSL connection refers to the connection provided by the webserver
> (like Netscape or WebLogic etc); or is it also a programmable
> connection from Java APIs??
I was referring to the web server (when you turn on SSL, you then have to
access the application with the https protocol). There are APIs to establish
SSL connections programmatically, but it's not what I was referring to.
> On the point, SSL connection will require that the user presents a
> valid Certificate; does it mean that user's certs are requested
> automatically? If so, then should I need to store these user certs in a
> place or how can I obtain their certs' information??
I don't know for all browser... With IE, you import your personnal
certificate. When you connect to the web site, you're then prompted to
select a certificate from a list.