Start by following the instructions at http://www.doegrids.org/pages/cert-request.html, part of which is included below.

After exporting the certificate from your browser, use these commands to get the public and private keys.