Windows: Generate CSR for code or driver signing certificate
To request a code signing certificate or a Windows driver signing certificate, you have to provide us a certificate signing request (CSR) generated by the machine you use to sign the code. We'll use the information in this file to validate your request and provide the information to anyone downloading your code or driver.
If you're using Windows 7 you can generate the CSR through Microsoft Management Console (mmc.exe
).
Note: It's important that you generate the CSR from your local machine and not from the web server you're using to host the file.
Add certificates snap-in to MMC
- In your Windows search feature, enter mmc, and then click it to launch the Microsoft Management Console application.
- From File, click Add/Remove Snap-in.
- Click Certificates and then click Add.
- Select Computer account, and then click Next.
- Select Local computer, and then click Finish.
- Click OK.
Generate CSR & private key
- In MMC, expand Certificates (Local Computer) and then Personal.
- Right-click Certificates, and then go to the following menus: All Tasks > Advanced Operations > Create Custom Request.
- Click Next.
- Click Active Directory Enrollment Policy.
- From Template, click Web Server.
- Ensure the Request format is PKCS #10, and then click Next.
- Click the downward-facing arrow next to Details, and then click Properties.
- From the Type menu, select the following values, enter the corresponding Value, and then click Add:
Type Value Common name Your business or organization's name Organization Your business or organization's name Locality Your business or organization's address State The state where your business or organization resides Country The country where your business or organization resides - Click the General tab, and then enter a Friendly name you can use to refer to the certificate.
- Go to the Private Key tab, click Key type, and then select Make private key exportable.
- Click OK, and then click Next.
- Browse for the location where you want to save the file, enter a File Name, and then click Finish.
Your CSR is now stored in the file you saved it to on your local machine.
This process also creates a private key, which you will need to use later to create a PFX
file to sign your code or driver.
Next step
- Open the CSR file in Notepad, and then use it to request your SSL certificate.