You may want to use that to make mutual peer authentication, but you need to have control over certificates on both ends and there is no such API in the browser. Browsers and most other software (with some obscure exceptions) generate those automatically.
So unless you really know that you need it, just don’t bother and let server generate it for you automatically.