Signing documents in the web

Hi

I need to be able to sign documents in a database usign a browser and with the certificate the user choose.

Somebody has idea of how making this?

Any aid is highly appreciated.

Thanks, Ula