WinHttpCertCfg a Command Line Certificate Configuration Tool
You may find more examples here and download the WinHttpCertCfg tool here.
As you see, both tools comes in handy whenever you need to build a deployment script or just assign the required permissions the a certificate private key file without the hassle of complicated APIs or obscure directory paths like “[Documents and Settings]\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys” and the like.