I kept it for a later purpose. If somebody can experiment further with store certificate in browser, this code could be useful.