How to apply a client-side signature