Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are my scripts for doing this:</p> <h3>Create Certificate Authority</h3> <p>Create a self-signed certificate (-r), with an exportable private key (-pe), using SHA1 (-r), for signing (-sky signature). The private key is written to a file (-sv).</p> <pre><code>makecert -r -pe -n "CN=My Root Authority" -ss CA -sr CurrentUser ^ -a sha1 -sky signature -cy authority -sv CA.pvk CA.cer </code></pre> <p>(^= allow batch command-line to wrap line)</p> <h3>Create Server Certificate</h3> <p>Create a server certificate, with an exportable private key (-pe), using SHA1 (-a) for key exchange (-sky exchange). It can be used as an SSL server certificate (-eku 1.3.6.1.5.5.7.3.1). The issuing certificate is in a file (-ic), as is the key (-iv). Use a particular crypto provider (-sp, -sy).</p> <pre><code>makecert -pe -n "CN=fqdn.of.server" -a sha1 -sky Exchange ^ -eku 1.3.6.1.5.5.7.3.1 -ic CA.cer -iv CA.pvk ^ -sp "Microsoft RSA SChannel Cryptographic Provider" ^ -sy 12 -sv server.pvk server.cer pvk2pfx -pvk server.pvk -spc server.cer -pfx server.pfx </code></pre> <p>You then use the .PFX file in your server app (or install it in IIS). Note that, by default, <strong><code>pvk2pfx</code> doesn't apply a password to the output PFX file</strong>. You need to use the <code>-po</code> switch for that.</p> <p>To make all of your client machines trust it, install <strong>CA.cer</strong> in their certificate stores (in the Trusted Root Authorities store). If you're on a domain, you can use Windows Group Policy to do this globally. If not, you can use the <strong>certmgr.msc</strong> MMC snapin, or the <strong>certutil</strong> command-line utility:</p> <pre><code>certutil -user -addstore Root CA.cer </code></pre> <p>To programmatically install the certificate in IIS 6.0, look at <a href="http://support.microsoft.com/?id=313624" rel="noreferrer">this Microsoft KB article</a>. For IIS 7.0, I don't know.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload