The certificate is probably in a form of text string, so you can simply store it in Local Storage. There are plenty of examples and tutorials.
But to sign any data you will need a script or addon. As far as I know, the official plugin doesn't support PKI cryptography, so you will need some third party solution.