2010年10月31日 星期日

Using certification in VS2008 project property

I already describe the way to create, install and sign application use test certification in [Create and use test certificate]. And I found that VS2008 already provides the ability in project property.

You still need to create your test certificate using makecert.exe first. You can follow the steps to create it. If you follow the sample, the certificate should be installed in user store already, and it’s name is “Tim’s Dev Authority”.

Open the project property, there is a sub-title “Sign Authenticode”. Click into the option, you will see three field for you can configure. Here is the snapshot:

擷取

Sorry about I am using Traditional Chinese version Virtual Studio. If you are using another language, I believe you can find it (微笑).

The first option is indicate that if you want to sign your application output. Of course me need to change it as “YES” in our case.

The second one is the certificate you want to use. Click the more option in that field will pop on another dialog for you to choice the certificate you want:

擷取2 

If you already install the test certificate as the previous sample, you will see “Tim’s Dev Authority” exists in the list. Choice and click OK.

If your certificate does not exists in the list. Maybe the test certificate did not been installed. You can click “Manage Certificate” to browse and install the certificate you want. Or, maybe the certificate you created cannot be used to sign a application.

And the third option is indicate the do you want to install the certificate to your device. There are two options in that combo box, I don’t know what’s different between them, and I usually use the first one.

Now you can compile and deliver your application. You will see the sign tool output when compile the application, and after you deliver the application to your device, you will the certificate already been installed on your device.

沒有留言:

張貼留言